OSDN Git Service

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)
commit57f64034966fb945fc958f95f0c51e47af590344
treea7ad530e20df8b5c6c0ed3c052d289284828d9f2
parentfc5fc5d7cc9e0c7d2ca5c751cf5450c6bb635e57
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