]> 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)
commit2198a8990a180303e6552a4008bb1af33c4663d2
treea7ad530e20df8b5c6c0ed3c052d289284828d9f2
parent6ed84604da59a38fdde2e67c6872436e2775b6b5
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