thp: remove assumptions on pgtable_t type
[deliverable/linux.git] / include / linux / nbd.h
index 4b8ed5a1cfb078d9e70bd920c355bba1453ce2fb..5c86e2b33e2db55644ccdaa360c49e9ce394856a 100644 (file)
 enum {
        NBD_CMD_READ = 0,
        NBD_CMD_WRITE = 1,
-       NBD_CMD_DISC = 2
+       NBD_CMD_DISC = 2,
+       /* there is a gap here to match userspace */
+       NBD_CMD_TRIM = 4
 };
 
 /* values for flags field */
 #define NBD_FLAG_HAS_FLAGS    (1 << 0) /* nbd-server supports flags */
 #define NBD_FLAG_READ_ONLY    (1 << 1) /* device is read-only */
+/* there is a gap here to match userspace */
+#define NBD_FLAG_SEND_TRIM    (1 << 5) /* send trim/discard */
 
 #define nbd_cmd(req) ((req)->cmd[0])
 
This page took 0.038795 seconds and 5 git commands to generate.