cifs: Fix smb3_insert_range() to move the zero_point
authorDavid Howells <dhowells@redhat.com>
Wed, 22 May 2024 08:38:48 +0000 (09:38 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 24 May 2024 21:04:36 +0000 (16:04 -0500)
commit8a1607233566fef7fbe30416e5d3b0567d0d1fba
tree3df68d949e8513d0bdb7db4681a9bc3f3ceb8b36
parent10c623a1956e673a9268493e0dacf373ddb2f9bf
cifs: Fix smb3_insert_range() to move the zero_point

Fix smb3_insert_range() to move the zero_point over to the new EOF.
Without this, generic/147 fails as reads of data beyond the old EOF point
return zeroes.

Fixes: 3ee1a1fc3981 ("cifs: Cut over to using netfslib")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c