Darrick J. Wong
efcfec579f
loop: fix no-unmap write-zeroes request behavior
...
Currently, if the loop device receives a WRITE_ZEROES request, it asks
the underlying filesystem to punch out the range. This behavior is
correct if unmapping is allowed. However, a NOUNMAP request means that
the caller doesn't want us to free the storage backing the range, so
punching out the range is incorrect behavior.
To satisfy a NOUNMAP | WRITE_ZEROES request, loop should ask the
underlying filesystem to FALLOC_FL_ZERO_RANGE, which is (according to
the fallocate documentation) required to ensure that the entire range is
backed by real storage, which suffices for our purposes.
Fixes: 19372e2769 ("loop: implement REQ_OP_WRITE_ZEROES")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2019-11-01 08:43:20 -06:00
..
2019-09-28 08:14:15 -07:00
2019-09-22 09:39:09 -07:00
2019-09-19 12:21:44 -06:00
2019-09-25 13:54:45 +02:00
2019-09-17 16:22:26 -07:00
2019-09-24 15:54:11 -07:00
2019-09-13 16:44:49 +03:00
2019-11-01 08:43:20 -06:00
2019-09-15 14:17:27 +02:00
2019-09-30 10:04:28 -07:00
2019-10-02 13:49:43 -07:00
2019-10-03 09:15:19 -07:00
2019-10-02 16:16:07 -07:00
2019-09-17 19:15:14 -07:00
2019-09-17 19:15:14 -07:00
2019-09-24 16:10:23 -07:00
2019-09-22 09:30:30 -07:00
2019-09-22 09:39:09 -07:00
2019-09-19 14:14:28 -07:00
2019-09-30 10:04:28 -07:00
2019-09-18 11:14:31 -07:00
2019-09-27 12:19:47 -07:00
2019-10-04 16:31:06 +10:00
2019-09-24 12:36:31 -07:00
2019-09-22 12:02:21 -07:00
2019-09-24 12:36:31 -07:00
2019-09-29 11:20:41 -07:00
2019-09-18 11:14:31 -07:00
2019-09-28 20:44:12 +02:00
2019-09-19 14:14:28 -07:00
2019-09-28 17:47:33 -07:00
2019-09-19 14:14:28 -07:00
2019-09-29 10:00:14 -07:00
2019-09-22 09:30:30 -07:00
2019-09-24 16:37:18 +02:00
2019-09-12 20:45:52 +02:00
2019-09-05 13:17:01 -06:00
2019-09-17 00:54:29 -05:00
2019-10-24 15:22:40 -07:00
2019-09-25 17:51:41 -07:00
2019-09-11 16:11:01 +02:00
2019-09-29 10:24:23 -07:00
2019-09-24 16:48:02 -07:00
2019-09-27 20:48:20 +02:00
2019-09-22 09:30:30 -07:00
2019-10-04 18:33:13 -07:00
2019-09-27 20:31:18 +02:00
2019-09-23 17:20:40 -04:00
2019-09-29 10:33:41 -07:00
2019-09-27 13:17:37 -06:00
2019-09-18 11:14:31 -07:00
2019-09-28 17:47:33 -07:00
2019-09-19 13:27:23 -07:00
2019-09-18 11:14:31 -07:00
2019-09-28 08:14:15 -07:00
2019-09-28 08:14:15 -07:00
2019-09-23 19:16:01 -07:00
2019-09-19 14:19:33 -07:00
2019-09-24 12:39:40 -07:00
2019-09-22 12:04:59 -07:00
2019-09-17 19:15:14 -07:00
2019-10-02 12:20:38 -04:00
2019-09-27 12:19:47 -07:00
2019-09-17 18:40:42 -07:00
2019-09-22 10:55:08 -07:00
2019-09-30 10:04:28 -07:00
2019-09-17 15:33:31 -07:00
2019-09-22 11:05:43 -07:00
2019-10-05 08:44:02 -07:00
2019-10-05 12:53:27 -07:00
2019-09-16 15:52:38 -07:00
2019-09-22 10:52:23 -07:00
2019-09-17 18:40:42 -07:00
2019-09-13 17:23:18 +03:00
2019-10-01 18:42:15 +02:00
2019-09-24 15:54:08 -07:00
2019-09-25 17:51:41 -07:00
2019-09-29 10:24:23 -07:00
2019-09-28 08:14:15 -07:00
2019-09-18 11:14:31 -07:00
2019-09-24 12:33:34 -07:00
2019-09-25 17:51:41 -07:00
2019-09-15 14:17:27 +02:00
2019-10-05 15:29:49 +09:00
2019-09-09 10:43:15 -04:00
2019-09-27 11:17:38 -07:00
2019-10-04 11:13:09 -07:00
2019-09-18 11:05:34 -07:00
2019-09-18 11:05:34 -07:00