diff options
author | Christoph Hellwig <[email protected]> | 2021-08-11 14:44:27 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-13 14:17:39 -0600 |
commit | 6177b56c96ff3b5e23d47f6b6c8630f31145da93 (patch) | |
tree | 37aa161a899ba695984ca13a3fc8d4ec0cc8382e /lib/test_fortify/write_overflow-memcpy.c | |
parent | 7bdc00cf7e369b3be17f26e5643da28de98d9d6d (diff) |
nbd: refactor device search and allocation in nbd_genl_connect
Use idr_for_each_entry instead of the awkward callback to find an
existing device for the index == -1 case, and de-duplicate the device
allocation if no existing device was found.
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions