summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2024-10-21 12:00:57 +0200
committerTheodore Ts'o <tytso@mit.edu>2024-11-13 18:56:47 +0100
commit6a0c5887a54318eaaafb00825ebb10d1f7c8f0cf (patch)
treea4033d863e5aa269d831e6933a74859a19dc0df8 /fs/ext4
parentext4: prevent delalloc to nodelalloc on remount (diff)
downloadlinux-6a0c5887a54318eaaafb00825ebb10d1f7c8f0cf.tar.xz
linux-6a0c5887a54318eaaafb00825ebb10d1f7c8f0cf.zip
ext4: use str_yes_no() helper function
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20241021100056.5521-2-thorsten.blum@linux.dev Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 9fc4b6177129..b25a27c86696 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -5711,7 +5711,7 @@ static void ext4_mb_show_ac(struct ext4_allocation_context *ac)
(unsigned long)ac->ac_b_ex.fe_logical,
(int)ac->ac_criteria);
mb_debug(sb, "%u found", ac->ac_found);
- mb_debug(sb, "used pa: %s, ", ac->ac_pa ? "yes" : "no");
+ mb_debug(sb, "used pa: %s, ", str_yes_no(ac->ac_pa));
if (ac->ac_pa)
mb_debug(sb, "pa_type %s\n", ac->ac_pa->pa_type == MB_GROUP_PA ?
"group pa" : "inode pa");