projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf4eb32
)
ext2: skip unnecessary operations in ext2_try_to_allocate()
author
Chengguang Xu
<cgxu519@mykernel.net>
Mon, 4 Nov 2019 11:40:34 +0000
(19:40 +0800)
committer
Jan Kara
<jack@suse.cz>
Thu, 7 Nov 2019 11:35:27 +0000
(12:35 +0100)
Move 'repeat' tag to proper place so that we can
skip unnecessary operations in ext2_try_to_allocate().
Link:
https://lore.kernel.org/r/20191104114036.9893-3-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/balloc.c
patch
|
blob
|
history
diff --git
a/fs/ext2/balloc.c
b/fs/ext2/balloc.c
index b7a4d74dfde7539fbc364f7b51f206591e1d46ce..f3ff05edaf8cce13038849a105cf99839c304654 100644
(file)
--- a/
fs/ext2/balloc.c
+++ b/
fs/ext2/balloc.c
@@
-684,7
+684,6
@@
ext2_try_to_allocate(struct super_block *sb, int group,
}
BUG_ON(start > EXT2_BLOCKS_PER_GROUP(sb));
-repeat:
if (grp_goal < 0) {
grp_goal = find_next_usable_block(start, bitmap_bh, end);
if (grp_goal < 0)
@@
-701,6
+700,7
@@
repeat:
}
start = grp_goal;
+repeat:
if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal,
bitmap_bh->b_data)) {
/*