diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-07-23 11:21:24 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-07-22 21:24:22 -0500 |
commit | 488968a8945c119859d91bb6a8dc13bf50002f15 (patch) | |
tree | e1ba134c928ddc08a1453c9067ab67c8861d8c79 /Documentation/netlabel/lsm_interface.rst | |
parent | 7b09d4e0be94968b7c6c117e34ca90cea9c6d986 (diff) | |
download | linux-488968a8945c119859d91bb6a8dc13bf50002f15.tar.gz |
cifs: fix fallocate when trying to allocate a hole.
Remove the conditional checking for out_data_len and skipping the fallocate
if it is 0. This is wrong will actually change any legitimate the fallocate
where the entire region is unallocated into a no-op.
Additionally, before allocating the range, if FALLOC_FL_KEEP_SIZE is set then
we need to clamp the length of the fallocate region as to not extend the size of the file.
Fixes: 966a3cb7c7db ("cifs: improve fallocate emulation")
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'Documentation/netlabel/lsm_interface.rst')
0 files changed, 0 insertions, 0 deletions