Ronnie Sahlberg
488968a894
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: 966a3cb7c7 ("cifs: improve fallocate emulation")
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com >
Signed-off-by: Steve French <stfrench@microsoft.com >
2021-07-22 21:24:22 -05:00
..
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-07-14 10:06:33 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-04-25 16:28:22 -05:00
2020-10-11 23:57:18 -05:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2021-06-23 19:26:40 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-07-09 12:48:58 -05:00
2021-07-09 13:03:36 -05:00
2021-07-16 00:21:47 -05:00
2021-07-02 18:36:23 -05:00
2021-06-20 21:28:17 -05:00
2020-06-01 00:10:18 -05:00
2021-07-22 14:35:15 -05:00
2021-07-22 11:43:23 -05:00
2021-07-22 11:43:23 -05:00
2021-07-22 11:43:23 -05:00
2021-06-23 19:24:30 -05:00
2021-07-14 10:06:03 -05:00
2021-07-14 10:06:03 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-07-22 11:43:23 -05:00
2021-07-08 18:25:04 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-07-14 10:06:03 -05:00
2021-06-20 21:28:16 -05:00
2020-12-14 09:16:22 -06:00
2020-08-02 18:00:25 -05:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2021-06-20 21:28:17 -05:00
2021-06-23 13:05:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-04-25 16:28:23 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-23 13:04:36 -05:00
2021-07-22 21:24:22 -05:00
2021-07-09 12:48:58 -05:00
2021-07-15 19:07:04 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-06-22 12:08:32 -05:00
2020-04-07 12:41:16 -05:00
2019-08-22 14:57:34 +10:00
2021-06-20 21:28:17 -05:00
2021-06-20 21:28:17 -05:00
2021-05-27 14:04:32 -05:00
2021-07-02 18:35:25 -05:00
2021-04-25 16:28:23 -05:00
2020-07-05 14:23:38 -06:00
2021-06-20 21:28:17 -05:00