summaryrefslogtreecommitdiff
path: root/fs/fcntl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-09-20 16:09:57 +0200
committerChristoph Hellwig <hch@lst.de>2022-09-27 09:22:09 +0200
commitab46d8d40f01487bf637428c4767f0e75ac2a95a (patch)
treea21853a733f4ef42fea447c2b56253e2ca9cb284 /fs/fcntl.c
parent1c32a8012b7fabe469b6af826edfd4ae2a6201d3 (diff)
nvmet: add helpers to set the result field for connect commands
The code to set the result field for the admin and I/O connect commands is not only verbose and duplicated, but also violates the aliasing rules as it accesses both the u16 and u32 members in the union. Add a little helper to sort all that out. Fixes: db1312dd9548 ("nvmet: implement basic In-Band Authentication") Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions