]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:18 +0000 (08:38 +0100)
commit13867ddd80ea314230527f05d1a4a628a8ed2eaa
treea340ff574bde3af16f6a4aac6a7b1ce495296167
parent51c1d030fffb7e1fbfcf4f8c16e6d600e7534237
nfsd: Clone should commit src file metadata too

[ Upstream commit 57f64034966fb945fc958f95f0c51e47af590344 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/vfs.c