* for-6.12/block: (115 commits) block: unpin user pages belonging to a folio at once mm: release number of pages of a folio block: introduce folio awareness and add a bigger size from folio block: Added folio-ized version of bio_add_hw_page() block, bfq: factor out a helper to split bfqq in bfq_init_rq() block, bfq: remove local variable 'bfqq_already_existing' in bfq_init_rq() block, bfq: remove local variable 'split' in bfq_init_rq() block, bfq: remove bfq_log_bfqg() block, bfq: merge bfq_release_process_ref() into bfq_put_cooperator() block, bfq: fix procress reference leakage for bfqq in merge chain block, bfq: fix uaf for accessing waker_bfqq after splitting blk-throttle: support prioritized processing of metadata blk-throttle: remove last_low_overflow_time drbd: Add NULL check for net_conf to prevent dereference in state validation blk-mq: add missing unplug trace event mtip32xx: Remove redundant null pointer checks in mtip_hw_debugfs_init() md: Add new_level sysfs interface zram: Shrink zram_table_entry::flags. zram: Remove ZRAM_LOCK zram: Replace bit spinlocks with a spinlock_t. ...
Showing the changes to include/uapi (1 of 62 files). Show all
Unified · Split
| @@ -42,8 +42,9 @@ enum { · 41 unmodified lines | ||
| 42 | 42 | NBD_CMD_WRITE = 1, |
| 43 | 43 | NBD_CMD_DISC = 2, |
| 44 | 44 | NBD_CMD_FLUSH = 3, |
| 45 | − NBD_CMD_TRIM = 4 | |
| 45 | + NBD_CMD_TRIM = 4, | |
| 46 | 46 | /* userspace defines additional extension commands */ |
| 47 | + NBD_CMD_WRITE_ZEROES = 6, | |
| 47 | 48 | }; |
| 48 | 49 | |
| 49 | 50 | /* values for flags field, these are server interaction specific. */ |
| @@ -51,12 +52,15 @@ enum { · 1 unmodified line | ||
| 51 | 52 | #define NBD_FLAG_READ_ONLY (1 << 1) /* device is read-only */ |
| 52 | 53 | #define NBD_FLAG_SEND_FLUSH (1 << 2) /* can flush writeback cache */ |
| 53 | 54 | #define NBD_FLAG_SEND_FUA (1 << 3) /* send FUA (forced unit access) */ |
| 54 | −/* there is a gap here to match userspace */ | |
| 55 | +#define NBD_FLAG_ROTATIONAL (1 << 4) /* device is rotational */ | |
| 55 | 56 | #define NBD_FLAG_SEND_TRIM (1 << 5) /* send trim/discard */ |
| 57 | +#define NBD_FLAG_SEND_WRITE_ZEROES (1 << 6) /* supports WRITE_ZEROES */ | |
| 58 | +/* there is a gap here to match userspace */ | |
| 56 | 59 | #define NBD_FLAG_CAN_MULTI_CONN (1 << 8) /* Server supports multiple connections per export. */ |
| 57 | 60 | |
| 58 | 61 | /* values for cmd flags in the upper 16 bits of request type */ |
| 59 | 62 | #define NBD_CMD_FLAG_FUA (1 << 16) /* FUA (forced unit access) op */ |
| 63 | +#define NBD_CMD_FLAG_NO_HOLE (1 << 17) /* Do not punch a hole for WRITE_ZEROES */ | |
| 60 | 64 | |
| 61 | 65 | /* These are client behavior specific flags. */ |
| 62 | 66 | #define NBD_CFLAG_DESTROY_ON_DISCONNECT (1 << 0) /* delete the nbd device on |