]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ext4: use string choices helpers
authorR Sundar <prosunofficial@gmail.com>
Mon, 7 Oct 2024 17:20:06 +0000 (22:50 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Nov 2024 04:54:15 +0000 (23:54 -0500)
Use string choice helpers for better readability and to fix cocci warning

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Closes: https://lore.kernel.org/r/202410062256.BoynX3c2-lkp@intel.com/
Signed-off-by: R Sundar <prosunofficial@gmail.com>
Link: https://patch.msgid.link/20241007172006.83339-1-prosunofficial@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c

index 92f49d7eb3c00157c3114bd475e8cc2a2cf0901e..9fc4b6177129b5540fead50a57c4f1c9a7064394 100644 (file)
@@ -6056,7 +6056,7 @@ static bool ext4_mb_discard_preallocations_should_retry(struct super_block *sb,
        }
 
 out_dbg:
-       mb_debug(sb, "freed %d, retry ? %s\n", freed, ret ? "yes" : "no");
+       mb_debug(sb, "freed %d, retry ? %s\n", freed, str_yes_no(ret));
        return ret;
 }