ext4: simplify the code of mb_find_order_for_block
authorChunguang Xu <brookxu@tencent.com>
Sat, 7 Nov 2020 15:58:13 +0000 (23:58 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Dec 2020 14:42:41 +0000 (09:42 -0500)
commitce3cca337401123c9cf96896fc4e1657bb016bd3
tree6e662010e865fd521778bb0acbcb01a197d3ee44
parent6bd97bf273bdb4944904e57480f6545bca48ad77
ext4: simplify the code of mb_find_order_for_block

The code of mb_find_order_for_block is a bit obscure, but we can
simplify it with mb_find_buddy(), make the code more concise.

Signed-off-by: Chunguang Xu <brookxu@tencent.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/1604764698-4269-3-git-send-email-brookxu@tencent.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c