Skip to content

fs: Convert all embedded bdis into separate ones

Jan Kara ceph-devel cluster-devel ecryptfs linux-block linux-btrfs linux-cifs linux-fsdevel linux-mtd linux-nfs linux-nilfs lustre-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest25 patches 9 repliesIn review
  2. v225 patches 30 repliesSuperseded
  3. v1 RFC24 patches 19 repliesSuperseded

Changes in v3 from the cover letter

* Added Reviewed-by tags from Christoph

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25bdi: Provide bdi_register_va() and bdi_alloc()include/linux/backing-dev.h mm/backing-dev.c+21 -50 replies
2/25block: Unregister bdi on last reference dropmm/backing-dev.c+2 -00 replies
3/25bdi: Export bdi_alloc_node() and bdi_put()mm/backing-dev.c+2 -00 replies
4/25fs: Provide infrastructure for dynamic BDIs in filesystemsfs/super.c include/linux/backing-dev-defs.h include/linux/fs.h+56 -10 replies
5/25fs: Get proper reference for s_bdifs/super.c+2 -50 replies
6/25lustre: Convert to separately allocated bdidrivers/staging/lustre/lustre/include/lustre_disk.h drivers/staging/lustre/lustre/llite/llite_lib.c+3 -250 replies
7/259p: Convert to separately allocated bdifs/9p/v9fs.c fs/9p/v9fs.h fs/9p/vfs_super.c+13 -130 replies
8/25btrfs: Convert to separately allocated bdifs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/super.c+14 -300 replies
9/25ceph: Convert to separately allocated bdifs/ceph/addr.c fs/ceph/debugfs.c fs/ceph/super.c +1 more+17 -280 replies
10/25cifs: Convert to separately allocated bdifs/cifs/cifs_fs_sb.h fs/cifs/cifsfs.c fs/cifs/connect.c+6 -120 replies
11/25ecryptfs: Convert to separately allocated bdifs/ecryptfs/ecryptfs_kernel.h fs/ecryptfs/main.c+1 -40 replies
12/25afs: Convert to separately allocated bdifs/afs/internal.h fs/afs/super.c fs/afs/volume.c+4 -100 replies
13/25mtd: Convert to dynamically allocated bdi infrastructuredrivers/mtd/mtdcore.c drivers/mtd/mtdsuper.c include/linux/mtd/mtd.h+18 -170 replies
14/25coda: Convert to separately allocated bdifs/coda/inode.c include/linux/coda_psdev.h+4 -80 replies
15/25exofs: Convert to separately allocated bdifs/exofs/exofs.h fs/exofs/super.c+6 -120 replies
16/25fuse: Convert to separately allocated bdifs/fuse/dev.c fs/fuse/fuse_i.h fs/fuse/inode.c+17 -366 replies
17/25fuse: Get rid of bdi_initializedfs/fuse/dev.c fs/fuse/fuse_i.h fs/fuse/inode.c+2 -80 replies
18/25gfs2: Convert to properly refcounting bdifs/gfs2/ops_fstype.c+3 -60 replies
19/25nilfs2: Convert to properly refcounting bdifs/nilfs2/super.c+2 -11 reply
20/25ncpfs: Convert to separately allocated bdifs/ncpfs/inode.c fs/ncpfs/ncp_fs_sb.h+2 -70 replies
21/25nfs: Convert to separately allocated bdifs/nfs/client.c fs/nfs/internal.h fs/nfs/super.c +2 more+28 -361 reply
22/25ubifs: Convert to separately allocated bdifs/ubifs/super.c fs/ubifs/ubifs.h+9 -190 replies
23/25fs: Remove SB_I_DYNBDI flagdrivers/mtd/mtdsuper.c fs/gfs2/ops_fstype.c fs/nfs/super.c +3 more+1 -110 replies
24/25block: Remove unused functionsinclude/linux/backing-dev.h mm/backing-dev.c+6 -550 replies
25/25bdi: Drop 'parent' argument from bdi_register[_va]()drivers/mtd/mtdcore.c fs/super.c include/linux/backing-dev.h +1 more+11 -150 replies

Reviews trailers per patch

All 25 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigAndreas DilgerTyler HicksBoaz HarroshMiklos SzerediRichard WeinbergerLiu BoDavid SterbaPetr VandrovecRyusuke KonishiTrond MyklebustRakesh Pandit
1/25R-b
2/25R-b
3/25R-b
4/25R-b
5/25R-b
6/25R-b R-b
7/25R-b
8/25R-b R-b R-b
9/25R-b
10/25R-b
11/25R-b A-b
12/25R-b
13/25R-b
14/25R-b
15/25R-b A-b
16/25R-b A-b T-b
17/25R-b
18/25R-b
19/25R-b A-b
20/25R-b A-b
21/25R-b A-b
22/25R-b A-b
23/25R-b
24/25R-b
25/25R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 12 reviewers.

Read the v3 thread

Cover letter [PATCH 0/25 v3] fs: Convert all embedded bdis into separate ones

Hello,

this is the third revision of the patch series which converts all embedded occurences of struct backing_dev_info to use standalone dynamically allocated structures. This makes bdi handling unified across all bdi users and generally removes some boilerplate code from filesystems setting up their own bdi. It also allows us to remove some code from generic bdi implementation.

The patches were only compile-tested for most filesystems (I've tested mounting only for NFS & btrfs) so fs maintainers please have a look whether the changes look sound to you.

This series is based on top of bdi fixes that were merged into linux-block git tree into for-next branch. I have pushed out the result as a branch to

git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git bdi

Since all patches got reviewed by Christoph, can you please pick them up Jens? Thanks!

Changes since v2:
* Added Reviewed-by tags from Christoph

Changes since v1:
* Added some acks
* Added further FUSE cleanup patch
* Added removal of unused argument to bdi_register()
* Fixed up some compilation failures spotted by 0-day testing

Honza