fs: move timespec validation into utimes_common
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Jul 2020 06:15:36 +0000 (08:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:16:01 +0000 (08:16 +0200)
commit27eb11c9632c66754ea7f67512b3516f998ed213
tree836c6ba8be09288b97a5ddac4dd6c312e6e390ae
parent9d4b74aee80436d067d79a6c32ebb544b0ae5460
fs: move timespec validation into utimes_common

Consolidate the validation of the timespec from the two callers into
utimes_common.  That means it is done a little later (e.g. after the
path lookup), but I can't find anything that requires a specific
order of processing the errors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/utimes.c