Skip to contentSkip to conversation

ext4: fix typos in ext4_mb_regular_allocator() comment

PATCH Applied brookxu 4 participants 4 messages Aug 7, 2020 – Aug 18, 2020 ext4 file system

lore
Share & tools
lore

brookxu

author
#0 lore raw

PATCH 1/1 ext4: fix typos in ext4_mb_regular_allocator() comment

Fix typos in ext4_mb_regular_allocator() comment

---
 fs/ext4/mballoc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/ext4/mballoc.c +2 -2
index 4f21f34..0edec26 100644
@@ -2237,8 +2237,8 @@ static int ext4_mb_good_group_nolock(struct ext4_allocation_context *ac,
 		goto out;
 
 	/*
-	 * ac->ac2_order is set only if the fe_len is a power of 2
-	 * if ac2_order is set we also set criteria to 0 so that we
+	 * ac->ac_2order is set only if the fe_len is a power of 2
+	 * if ac->ac_2order is set we also set criteria to 0 so that we
 	 * try exact allocation using buddy.
 	 */
 	i = fls(ac->ac_g_ex.fe_len);
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · brookxu

Fix typos in ext4_mb_regular_allocator() comment

Quoted 20 lines

---
fs/ext4/mballoc.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
fs/ext4/mballoc.c +2 -3
index 4f21f34..0edec26 100644
@@ -2237,8 +2237,8 @@ static int ext4_mb_good_group_nolock(struct ext4_allocation_context *ac,
 		goto out;
 
 	/*
-	 * ac->ac2_order is set only if the fe_len is a power of 2
-	 * if ac2_order is set we also set criteria to 0 so that we
+	 * ac->ac_2order is set only if the fe_len is a power of 2
+	 * if ac->ac_2order is set we also set criteria to 0 so that we
 	 * try exact allocation using buddy.
 	 */
 	i = fls(ac->ac_g_ex.fe_len);
--
Quoted 1 line

1.8.3.1

Cheers, Andreas