ext4: replace CR_FAST macro with inline function for readability
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Fri, 30 Jun 2023 08:59:27 +0000 (14:29 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Aug 2023 14:39:05 +0000 (10:39 -0400)
commit304749c0d5e216479ea4d553ad04ba1390d5c707
treed2fe3197e466041d1dbc0ea06c67462bb3da139f
parent1e1566b9c85fbd6150657ea17f50fd42b9166d31
ext4: replace CR_FAST macro with inline function for readability

Replace CR_FAST with ext4_mb_cr_expensive() inline function for better
readability. This function returns true if the criteria is one of the
expensive/slower ones where lots of disk IO/prefetching is acceptable.

No functional changes are intended in this patch.

Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20230630085927.140137-1-ojaswin@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/mballoc.c