]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: when extending a file with falloc we should make files not-sparse
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 31 May 2022 22:48:38 +0000 (08:48 +1000)
committerSteve French <stfrench@microsoft.com>
Tue, 31 May 2022 23:04:06 +0000 (18:04 -0500)
commitc35dbca98d1c5716e6ef121af1c25a0fd5a55948
treeded318abbf35c949c6106ab6022ebedd27853a01
parent8f87613bec486d066cfbd65a14683cc22c687490
cifs: when extending a file with falloc we should make files not-sparse

as this is the only way to make sure the region is allocated.
Fix the conditional that was wrong and only tried to make already
non-sparse files non-sparse.

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