]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
types: nsid is unused in reclaim unit handle usage
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 19 Jan 2023 12:35:08 +0000 (13:35 +0100)
committerKlaus Jensen <k.jensen@samsung.com>
Thu, 19 Jan 2023 12:35:08 +0000 (13:35 +0100)
The Reclaim Unit Handle Usage command does not use a namespace
identifier.

Remove the function parameter.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
src/nvme/ioctl.h

index 6ec005526522a10e29201f5aad32d156becc3d5e..c15e5025e265959dee9d0473044ffea3bc1e0a10 100644 (file)
@@ -1672,13 +1672,12 @@ static inline int nvme_get_log_fdp_configurations(int fd, __u16 egid,
 /**
  * nvme_get_log_reclaim_unit_handle_usage() - Get reclaim unit handle usage
  * @fd:                File descriptor of nvme device
- * @nsid:      Namespace identifier
  * @egid:      Endurance group identifier
  * @offset:    Offset into log page
  * @len:       Length (in bytes) of provided user buffer to hold the log data
  * @log:       Log page data buffer
  */
-static inline int nvme_get_log_reclaim_unit_handle_usage(int fd, __u32 nsid, __u16 egid,
+static inline int nvme_get_log_reclaim_unit_handle_usage(int fd, __u16 egid,
                        __u32 offset, __u32 len, void *log)
 {
        struct nvme_get_log_args args = {
@@ -1690,7 +1689,6 @@ static inline int nvme_get_log_reclaim_unit_handle_usage(int fd, __u32 nsid, __u
                .timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
                .lid = NVME_LOG_LID_FDP_RUH_USAGE,
                .len = len,
-               .nsid = nsid,
                .csi = NVME_CSI_NVM,
                .lsi = egid,
                .lsp = NVME_LOG_LSP_NONE,