Skip to content

Commit d27b980

Browse files
committed
types: nsid is unused in reclaim unit handle usage
The Reclaim Unit Handle Usage command does not use a namespace identifier. Remove the function parameter. Signed-off-by: Klaus Jensen <[email protected]>
1 parent 6c3c2f6 commit d27b980

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/nvme/ioctl.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,13 +1672,12 @@ static inline int nvme_get_log_fdp_configurations(int fd, __u16 egid,
16721672
/**
16731673
* nvme_get_log_reclaim_unit_handle_usage() - Get reclaim unit handle usage
16741674
* @fd: File descriptor of nvme device
1675-
* @nsid: Namespace identifier
16761675
* @egid: Endurance group identifier
16771676
* @offset: Offset into log page
16781677
* @len: Length (in bytes) of provided user buffer to hold the log data
16791678
* @log: Log page data buffer
16801679
*/
1681-
static inline int nvme_get_log_reclaim_unit_handle_usage(int fd, __u32 nsid, __u16 egid,
1680+
static inline int nvme_get_log_reclaim_unit_handle_usage(int fd, __u16 egid,
16821681
__u32 offset, __u32 len, void *log)
16831682
{
16841683
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
16901689
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
16911690
.lid = NVME_LOG_LID_FDP_RUH_USAGE,
16921691
.len = len,
1693-
.nsid = nsid,
16941692
.csi = NVME_CSI_NVM,
16951693
.lsi = egid,
16961694
.lsp = NVME_LOG_LSP_NONE,

0 commit comments

Comments
 (0)