Files
kernel_arpi/include/linux
Paul Clements a336d29870 nbd: handle discard requests
Add discard support to nbd.  If the nbd-server supports discard, it will
send NBD_FLAG_SEND_TRIM to the client.  The client will then set the flag
in the kernel via NBD_SET_FLAGS, which tells the kernel to enable discards
for the device (QUEUE_FLAG_DISCARD).

If discard support is enabled, then when the nbd client system receives a
discard request, this will be passed along to the nbd-server.  When the
discard request is received by the nbd-server, it will perform:

	fallocate(.. FALLOC_FL_PUNCH_HOLE ..)

To punch a hole in the backend storage, which is no longer needed.

Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-06 03:05:24 +09:00
..
2012-09-19 19:08:53 -06:00
2012-08-10 15:27:02 -04:00
2012-10-06 03:04:35 +09:00
2012-09-19 19:08:46 -06:00
2012-08-07 10:10:57 +02:00
2012-09-17 15:00:38 -07:00
2012-09-17 15:00:38 -07:00
2012-08-21 01:19:54 -07:00
2012-09-05 12:18:11 -07:00
2012-09-26 21:10:00 -04:00
2012-10-02 21:35:55 -04:00
2012-08-09 16:18:06 -07:00
2012-09-19 19:50:20 +02:00
2012-10-06 03:04:56 +09:00
2012-08-14 14:28:32 -07:00
2012-10-01 18:39:45 -04:00
2012-08-14 14:28:32 -07:00
2012-09-07 14:57:45 -04:00
2012-08-14 14:28:32 -07:00
2012-09-26 13:52:36 -07:00
2012-08-22 10:24:41 -04:00
2012-09-17 15:00:37 -07:00
2012-10-06 03:05:24 +09:00
2012-09-27 10:47:59 +02:00
2012-09-13 09:08:02 -06:00
2012-08-21 20:50:25 +02:00
2012-10-06 03:05:01 +09:00
2012-09-06 09:17:01 -07:00
2012-08-21 16:28:31 +02:00
2012-09-05 17:21:36 -07:00
2012-08-04 12:15:37 +04:00