cifs: zero-range does not require the file is sparse
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 11 Apr 2019 23:56:23 +0000 (09:56 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:55 +0000 (23:24 -0500)
commitc7fe388d76e900e6c49f8df51cfd21903832fdd5
tree345051c987bae5c20c7d4382c3b91350f802c6d3
parent0df7edd9dca0c79817723f0e3895ec76351f08cc
cifs: zero-range does not require the file is sparse

Remove the conditional to fail zero-range if the file is not flagged as sparse.
You can still zero out a range in SMB2 even for non-sparse files.

Tested with stock windows16 server.

Fixes 5 xfstests (033, 149, 155, 180, 349)

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c