Skip to content
Commit c22ac849 authored by Brian Foster's avatar Brian Foster Committed by Greg Kroah-Hartman
Browse files

NFSD: pass range end to vfs_fsync_range() instead of count

[ Upstream commit 79a1d88a ]

_nfsd_copy_file_range() calls vfs_fsync_range() with an offset and
count (bytes written), but the former wants the start and end bytes
of the range to sync. Fix it up.

Fixes: eac0b17a

 ("NFSD add vfs_fsync after async copy is done")
Signed-off-by: default avatarBrian Foster <bfoster@redhat.com>
Tested-by: default avatarDai Ngo <dai.ngo@oracle.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 34a14759
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment