Skip to content

V2 Bigalloc patches

Theodore Ts'o linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19ext4: read-only support for bigalloc file systemsfs/ext4/ext4.h fs/ext4/super.c+65 -110 replies
2/19ext4: enforce bigalloc restrictions (e.g., no online resizing, etc.)fs/ext4/inode.c fs/ext4/ioctl.c fs/ext4/super.c+43 -40 replies
3/19ext4: convert instances of EXT4_BLOCKS_PER_GROUP to EXT4_CLUSTERS_PER_GROUPfs/ext4/mballoc.c+24 -240 replies
4/19ext4: factor out block group accounting into functionsfs/ext4/balloc.c+48 -320 replies
5/19ext4: split out ext4_free_blocks_after_init()fs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c+65 -700 replies
6/19ext4: bigalloc changes to block bitmap initialization functionsfs/ext4/balloc.c fs/ext4/ext4.h+103 -410 replies
7/19ext4: convert block group-relative offsets to use clustersfs/ext4/balloc.c fs/ext4/mballoc.h+6 -30 replies
8/19ext4: teach mballoc preallocation code about bigalloc clustersfs/ext4/mballoc.c fs/ext4/mballoc.h+48 -370 replies
9/19ext4: teach ext4_free_blocks() about bigalloc and clustersfs/ext4/ext4.h fs/ext4/mballoc.c fs/ext4/mballoc.h+65 -250 replies
10/19ext4: teach ext4_ext_map_blocks() about the bigalloc featurefs/ext4/extents.c+140 -180 replies
11/19ext4: teach ext4_ext_truncate() about the bigalloc featurefs/ext4/extents.c+72 -100 replies
12/19ext4: convert s_freeblocks_counter to s_freeclusters_counterfs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +4 more+26 -200 replies
13/19ext4: convert the free_blocks field in s_flex_groups to be free_clustersfs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +3 more+30 -270 replies
14/19ext4: teach ext4_statfs() to deal with clusters if bigalloc is enabledfs/ext4/super.c+22 -60 replies
15/19ext4: tune mballoc's default group prealloc size for bigalloc file systemsfs/ext4/mballoc.c+16 -20 replies
16/19ext4: enable mounting bigalloc as read/writefs/ext4/ext4.h+2 -10 replies
17/19ext4: Rename ext4_free_blks_{count,set}() to refer to clustersfs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +3 more+33 -320 replies
18/19ext4: rename ext4_count_free_blocks() to ext4_count_free_clusters()fs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/inode.c +1 more+14 -120 replies
19/19ext4: rename ext4_free_blocks_after_init() to ext4_free_clusters_after_init()fs/ext4/balloc.c fs/ext4/ext4.h fs/ext4/ialloc.c +1 more+9 -90 replies

Reviews trailers per patch

None of the 19 patches has a Reviewed-by or Acked-by.

PatchTheodore Ts'o
SeriesNOT-Signed-off-by
1/19
2/19
3/19
4/19
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/19] V2 Bigalloc patches

This is the revised bigalloc patches. This version survives xfstests with the -o block_validity mount option. I've attached the e2fsprogs patches needed so that we can create an bigalloc filesystem. This is **not** the final version of the e2fsprogs changes. Those are currently in process of being developed.

This is primarily because some folks at the file system summit wanted to see the in-progress patches.

This patch set is based off of the current ext4 "master" branch. (There is a bigalloc branch on the ext4 tree which also contains these commits.) These patches **will** conflict with the punch patches from Allison and Mingming, so this patch set will definitely be changing after I pull in the punch patches into the ext4 tree.

- Ted

Theodore Ts'o (19):
ext4: read-only support for bigalloc file systems
ext4: enforce bigalloc restrictions (e.g., no online resizing, etc.)
ext4: convert instances of EXT4_BLOCKS_PER_GROUP to
EXT4_CLUSTERS_PER_GROUP
ext4: factor out block group accounting into functions
ext4: split out ext4_free_blocks_after_init()
ext4: bigalloc changes to block bitmap initialization functions
ext4: convert block group-relative offsets to use clusters
ext4: teach mballoc preallocation code about bigalloc clusters
ext4: teach ext4_free_blocks() about bigalloc and clusters
ext4: teach ext4_ext_map_blocks() about the bigalloc feature
ext4: teach ext4_ext_truncate() about the bigalloc feature
ext4: convert s_freeblocks_counter to s_freeclusters_counter
ext4: convert the free_blocks field in s_flex_groups to be
free_clusters
ext4: teach ext4_statfs() to deal with clusters if bigalloc is
enabled
ext4: tune mballoc's default group prealloc size for bigalloc file
systems
ext4: enable mounting bigalloc as read/write
ext4: Rename ext4_free_blks_{count,set}() to refer to clusters
ext4: rename ext4_count_free_blocks() to ext4_count_free_clusters()
ext4: rename ext4_free_blocks_after_init() to
ext4_free_clusters_after_init()

 fs/ext4/balloc.c  |  302 ++++++++++++++++++++++++++++++++---------------------
 fs/ext4/ext4.h    |   64 ++++++++---
 fs/ext4/extents.c |  241 +++++++++++++++++++++++++++++++++++++-----
 fs/ext4/ialloc.c  |   72 ++++++-------
 fs/ext4/inode.c   |   19 +++-
 fs/ext4/ioctl.c   |   33 +++++-
 fs/ext4/mballoc.c |  256 ++++++++++++++++++++++++++++-----------------
 fs/ext4/mballoc.h |    9 +-
 fs/ext4/resize.c  |   10 +-
 fs/ext4/super.c   |  139 ++++++++++++++++++-------
 10 files changed, 792 insertions(+), 353 deletions(-)
Signature · 1 line
1.7.3.1