Tag: ebb3dad4353b94c12a5cffab4397727c19f088e5

Btrfs: using for_each_set_bit_from to simplify the code

Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using for_each_set_bit_from() to simplify the code. spatch with a semantic match is used to found this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun — fs/btrfs/free-space-cache.c | 8 ++—— 1 file changed, 2 insertions(+), 6 deletions(-)   diff –git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 6b10acf..b107e68 100644 — a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -1454,9 +1454,7 @@ static int search_bitmap(struct …

Continue reading