]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: reuse order and buddy in mb_mark_used when buddy split
authorhanjinke <hanjinke.666@bytedance.com>
Mon, 6 Jun 2022 15:53:05 +0000 (23:53 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Aug 2022 03:52:19 +0000 (23:52 -0400)
commit19af4f0f303d964884c8f34f42ec5e6cd52df56a
tree60a95a16a6fc2be741d905cd6b829da3b71e3277
parent9b77c3726913f8b4bd0c41aebcde4a0ef9c876e4
ext4: reuse order and buddy in mb_mark_used when buddy split

After each buddy split, mb_mark_used will search the proper order
for the block which may consume some loop in mb_find_order_for_block.
In fact, we can reuse the order and buddy generated by the buddy split.

Reviewed by: lei.rao@intel.com
Signed-off-by: hanjinke <hanjinke.666@bytedance.com>
Link: https://lore.kernel.org/r/20220606155305.74146-1-hanjinke.666@bytedance.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c