]> git.baikalelectronics.ru Git - kernel.git/commit
dm/ebs: Change 'int rw' into 'enum req_op op'
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:50 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
commit442909b43f0a591df8634f4739565eaddf3456db
tree01fb7db4b9f0390476f431d6ceabe36c0abef69b
parentce45200cd37156169c510095fcc28fb03b4b1c05
dm/ebs: Change 'int rw' into 'enum req_op op'

Improve static type checking by using type 'enum req_op' instead of 'int'.
Make the role of the 'rw' arguments more clear by renaming these into
'op' (operation). This patch does not change any functionality since
REQ_OP_READ = READ = 0 and REQ_OP_WRITE = WRITE = 1.

Cc: Alasdair Kergon <agk@redhat.com>
Cc: Mike Snitzer <snitzer@kernel.org>
Cc: Heinz Mauelshagen <heinzm@redhat.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-25-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-ebs-target.c