Skip to content

Clean up bitmap loading

Theodore Ts'o linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ext4: fold ext4_claim_inode into ext4_new_inodefs/ext4/ialloc.c+79 -1330 replies
2/2ext4: fix race when setting bitmap_uptodate flagfs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +1 more+77 -880 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2 -v2] Clean up bitmap loading

As it turns out we can't remove the forced initialization of the block bitmap when initializing the inode bitmap; e2fsck will complain because it explicitly checks for this condition. Thanks to Rakish Iyer at Google for finding this through his testing effort (debugging sucks; testing rocks!) and Curt Wohlgemuth for his analysis of the test failure and finding its cause.

I've removed the first patch that was in the previous version of this patch series for now, and will be patching e2fsprogs to eliminate this check. Since we can't guarantee that people will be running a sufficiently new version of e2fsprogs, we'll probably have to keep the block bitmap initialization in the upstream kernel for at least a year or two.

Theodore Ts'o (2):
ext4: fold ext4_claim_inode into ext4_new_inode
ext4: fix race when setting bitmap_uptodate flag

 fs/ext4/balloc.c  |   59 +++++++++----
 fs/ext4/ext4.h    |   11 ++-
 fs/ext4/ialloc.c  |  238 ++++++++++++++++++++++-------------------------------
 fs/ext4/mballoc.c |   79 ++++--------------
 4 files changed, 161 insertions(+), 226 deletions(-)
Signature · 1 line
1.7.9.107.g8e04a