cifs: add support for fallocate mode 0 for non-sparse files
authorRonnie Sahlberg <lsahlber@redhat.com>
Fri, 17 Jan 2020 01:45:02 +0000 (11:45 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 27 Jan 2020 01:24:17 +0000 (19:24 -0600)
commit8bd0d701445ef263a52968ced2854c3d35712695
tree1895bbc90fe00a0175dcecf3782459f848913049
parentfe1292686333d1dadaf84091f585ee903b9ddb84
cifs: add support for fallocate mode 0 for non-sparse files

RHBZ 1336264

When we extend a file we must also force the size to be updated.

This fixes an issue with holetest in xfs-tests which performs the following
sequence :
1, create a new file
2, use fallocate mode==0 to populate the file
3, mmap the file
4, touch each page by reading the mmapped region.

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