]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Clone should commit src file metadata too
authorTrond Myklebust <trondmy@gmail.com>
Wed, 18 Dec 2019 19:57:23 +0000 (14:57 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 19 Dec 2019 22:46:08 +0000 (17:46 -0500)
commitec8495bd0095a03c10137c96c31fdf1ba966ebf2
treea7ad530e20df8b5c6c0ed3c052d289284828d9f2
parente608368fefd0b7a0b57b94eaac6ee66ed65b647e
nfsd: Clone should commit src file metadata too

vfs_clone_file_range() can modify the metadata on the source file too,
so we need to commit that to stable storage as well.

Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Acked-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c