Ronnie Sahlberg
76f7eae7ec
cifs: fix fallocate when trying to allocate a hole.
...
[ Upstream commit 488968a8945c119859d91bb6a8dc13bf50002f15 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-28 14:35:42 +02:00
..
2020-10-22 12:17:52 -05:00
2020-06-06 11:16:25 -05:00
2020-07-01 19:38:19 -05:00
2020-06-01 00:10:18 -05:00
2021-07-25 14:36:17 +02:00
2019-09-16 11:43:38 -05:00
2020-02-06 09:14:28 -06:00
2019-11-25 01:16:30 -06:00
2011-05-27 04:34:02 +00: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
2020-11-15 23:05:33 -06:00
2020-08-02 18:00:26 -05:00
2020-08-07 11:33:22 -07:00
2021-03-17 17:06:13 +01:00
2020-10-23 23:41:49 -05:00
2021-07-14 16:56:01 +02:00
2021-03-30 14:32:07 +02:00
2020-10-20 11:51:24 -05:00
2020-06-01 00:10:18 -05:00
2020-08-23 17:36:59 -05:00
2021-07-20 16:05:35 +02:00
2021-01-19 18:27:19 +01:00
2020-08-02 18:00:26 -05:00
2021-02-10 09:29:17 +01:00
2019-06-27 23:02:12 +01:00
2010-08-05 17:17:51 +00:00
2019-07-31 13:31:05 -06:00
2021-04-10 13:36:10 +02:00
2020-10-22 12:17:31 -05:00
2020-10-22 12:17:31 -05:00
2020-06-06 11:16:25 -05:00
2020-06-06 11:16:25 -05:00
2021-03-25 09:04:09 +01:00
2020-07-09 10:06:52 -05:00
2020-04-07 13:39:00 -05:00
2020-06-12 08:54:12 -05:00
2020-10-22 12:16:24 -05:00
2020-08-07 11:39:33 -07: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
2016-06-23 23:45:07 -05:00
2020-10-22 12:17:59 -05:00
2007-06-05 18:30:44 +00:00
2021-05-11 14:47:37 +02:00
2020-08-02 18:00:25 -05:00
2020-03-22 22:49:09 -05:00
2021-03-30 14:32:07 +02:00
2021-03-17 17:06:28 +01:00
2020-10-15 23:58:14 -05:00
2021-04-10 13:36:10 +02:00
2021-07-28 14:35:42 +02:00
2021-06-03 09:00:44 +02:00
2021-02-10 09:29:17 +01:00
2021-03-17 17:06:28 +01:00
2019-05-07 23:24:54 -05:00
2021-03-30 14:32:07 +02:00
2020-06-01 00:10:18 -05:00
2020-04-07 12:41:16 -05:00
2019-08-22 14:57:34 +10:00
2010-08-02 12:40:40 +00:00
2020-10-23 15:38:10 -05:00
2019-01-24 09:37:33 -06:00
2020-10-20 11:50:42 -05:00
2021-03-30 14:31:50 +02:00
2020-07-05 14:23:38 -06:00
2020-01-26 19:24:17 -06:00