]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSD: pass range end to vfs_fsync_range() instead of count
authorBrian Foster <bfoster@redhat.com>
Wed, 16 Nov 2022 15:28:36 +0000 (10:28 -0500)
committerChuck Lever <cel@kernel.org>
Sat, 10 Dec 2022 16:01:12 +0000 (11:01 -0500)
commit79a1d88a36f77374c77fd41a4386d8c2736b8704
treeca466fc463ef25a2292c3fedd9bb9ce417357e16
parent9f27783b4dd235ef3c8dbf69fc6322777450323c
NFSD: pass range end to vfs_fsync_range() instead of count

_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: eac0b17a77fb ("NFSD add vfs_fsync after async copy is done")
Signed-off-by: Brian Foster <bfoster@redhat.com>
Tested-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c