]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm: convert ffs to __ffs
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 2 Oct 2015 15:21:24 +0000 (11:21 -0400)
committerMike Snitzer <snitzer@redhat.com>
Sat, 31 Oct 2015 23:06:01 +0000 (19:06 -0400)
commita3d939ae7b5f82688a6d3450f95286eaea338328
tree175d7f596c4c1a478a39cbee4a4a375fee459bf0
parent6f65985e2636c0b170eade6a72d216632f065e26
dm: convert ffs to __ffs

ffs counts bit starting with 1 (for the least significant bit), __ffs
counts bits starting with 0. This patch changes various occurrences of ffs
to __ffs and removes subtraction of 1 from the result.

Note that __ffs (unlike ffs) is not defined when called with zero
argument, but it is not called with zero argument in any of these cases.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c
drivers/md/dm-cache-policy-cleaner.c
drivers/md/dm-cache-policy-mq.c
drivers/md/dm-cache-policy-smq.c
drivers/md/dm-exception-store.c
drivers/md/dm-region-hash.c
drivers/md/dm-snap-persistent.c