Skip to content

bcachefs - a new COW filesystem

Kent Overstreet cluster-devel linux-bcachefs linux-block linux-fsdevel linux-hardening linux-mm lkml llvm oe-kbuild-all 1 version Applied

Status from this message: Applied to the vfs.unstable.inode-hash branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest32 patches 151 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/32Compiler Attributes: add __flatteninclude/linux/compiler_attributes.h+5 -02 replies
2/32locking/lockdep: lock_class_is_held()include/linux/lockdep.h kernel/locking/lockdep.c+24 -02 replies
3/32locking/lockdep: lockdep_set_no_check_recursion()include/linux/lockdep.h include/linux/lockdep_types.h kernel/locking/lockdep.c+33 -111 replies
4/32locking: SIX locks (shared/intent/exclusive)include/linux/six.h kernel/Kconfig.locks kernel/locking/Makefile +1 more+993 -010 replies
5/32MAINTAINERS: Add entry for six locksMAINTAINERS+8 -00 replies
6/32sched: Add task_struct->faults_disabled_mappinginclude/linux/sched.h init/init_task.c+2 -023 replies
7/32mm: Bring back vmalloc_execinclude/linux/vmalloc.h kernel/module/main.c mm/nommu.c +1 more+41 -362 replies
8/32fs: factor out d_mark_tmpfile()fs/dcache.c include/linux/dcache.h+11 -20 replies
9/32block: Add some exports for bcachefsblock/bio.c block/blk-core.c block/blk.h +1 more+5 -10 replies
10/32block: Allow bio_iov_iter_get_pages() with bio->bi_bdev unsetblock/bio.c+6 -40 replies
11/32block: Bring back zero_fill_bio_iterblock/bio.c include/linux/bio.h+9 -40 replies
12/32block: Rework bio_for_each_segment_all()block/bio.c block/blk-map.c block/bounce.c +21 more+256 -2130 replies
13/32block: Rework bio_for_each_folio_all()fs/crypto/bio.c fs/iomap/buffered-io.c fs/verity/verify.c +2 more+75 -630 replies
14/32block: Don't block on s_umount from __invalidate_super()block/bdev.c fs/super.c include/linux/fs.h+33 -100 replies
15/32bcache: move closures to lib/drivers/md/bcache/Kconfig drivers/md/bcache/Makefile drivers/md/bcache/bcache.h +7 more+43 -431 reply
16/32MAINTAINERS: Add entry for closuresMAINTAINERS+8 -02 replies
17/32closures: closure_wait_event()include/linux/closure.h+22 -00 replies
18/32closures: closure_nr_remaining()include/linux/closure.h+6 -10 replies
19/32closures: Add a missing includelib/closure.c+1 -00 replies
20/32vfs: factor out inode hash head calculationfs/inode.c+25 -196 replies
21/32hlist-bl: add hlist_bl_fake()include/linux/list_bl.h+22 -02 replies
22/32vfs: inode cache conversion to hash-blfs/inode.c include/linux/fs.h+132 -7718 replies
23/32iov_iter: copy_folio_from_iter_atomic()include/linux/uio.h lib/iov_iter.c+45 -100 replies
24/32MAINTAINERS: Add entry for generic-radix-treeMAINTAINERS+7 -01 reply
25/32lib/generic-radix-tree.c: Don't overflow in peek()include/linux/generic-radix-tree.h lib/generic-radix-tree.c+20 -30 replies
26/32lib/generic-radix-tree.c: Add a missing includeinclude/linux/generic-radix-tree.h+1 -00 replies
27/32lib/generic-radix-tree.c: Add peek_prev()include/linux/generic-radix-tree.h lib/generic-radix-tree.c+119 -10 replies
28/32stacktrace: Export stack_trace_save_tskkernel/stacktrace.c+2 -02 replies
29/32lib/string_helpers: string_get_size() now returns characters wroteinclude/linux/string_helpers.h lib/string_helpers.c+6 -65 replies
30/32lib: Export errnamelib/errname.c+1 -00 replies
31/32lib: add mean and variance module.MAINTAINERS include/linux/mean_and_variance.h lib/Kconfig.debug +4 more+533 -00 replies
32/32MAINTAINERS: Add entry for bcachefsMAINTAINERS+7 -02 replies

Reviews trailers per patch

4 of 32 patches have a Reviewed-by or Acked-by.

PatchColy LiLorenzo StoakesAndy Lutomirski
1/32
2/32
3/32
4/32
5/32
6/32
7/32A-b Nacked-by Nacked-by
8/32
9/32
10/32
11/32
12/32
13/32
14/32
15/32A-b
16/32A-b
17/32A-b
18/32
19/32
20/32
21/32
22/32
23/32
24/32
25/32
26/32
27/32
28/32
29/32
30/32
31/32
32/32

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

Read the v1 thread

Cover letter [PATCH 00/32] bcachefs - a new COW filesystem

I'm submitting the bcachefs filesystem for review and inclusion.

Included in this patch series are all the non fs/bcachefs/ patches. The entire tree, based on v6.3, may be found at:

http://evilpiepirate.org/git/bcachefs.git bcachefs-for-upstream

----------------------------------------------------------------

bcachefs overview, status:

Features:
- too many to list

Known bugs:
- too many to list

Status:
- Snapshots have been declared stable; one serious bug report outstanding to look into, most users report it working well.

These are RW btrfs-style snapshots, but with far better scalability and no scalability issues with sparse snapshots due to key level versioning.

- Erasure coding is getting really close; hope to have it ready for users to beat on it by this summer. This is a novel RAID/erasure coding design with no write hole, and no fragmentation of writes (e.g. RAIDZ).

- Tons of scalabality work finished over the past year, users are running it on 100 TB filesystems without complaint, waiting for first 1 PB user; next thing to address re: scalability is fsck/recovery memory usage.

- Test infrastructure! Major project milestone, check out our test dashboard at
https://evilpiepirate.org/~testdashboard/ci?branch=bcachefs

Other project notes:

irc::/irc.oftc.net/bcache is where most activity happens; I'm always there, and most code review happens there - I find the conversational format more productive.

------------------------------------------------

patches in this series:

Christopher James Halse Rogers (1):
stacktrace: Export stack_trace_save_tsk

Daniel Hill (1):
lib: add mean and variance module.

Dave Chinner (3):
vfs: factor out inode hash head calculation
hlist-bl: add hlist_bl_fake()
vfs: inode cache conversion to hash-bl

Kent Overstreet (27):
Compiler Attributes: add __flatten
locking/lockdep: lock_class_is_held()
locking/lockdep: lockdep_set_no_check_recursion()
locking: SIX locks (shared/intent/exclusive)
MAINTAINERS: Add entry for six locks
sched: Add task_struct->faults_disabled_mapping
mm: Bring back vmalloc_exec
fs: factor out d_mark_tmpfile()
block: Add some exports for bcachefs
block: Allow bio_iov_iter_get_pages() with bio->bi_bdev unset
block: Bring back zero_fill_bio_iter
block: Rework bio_for_each_segment_all()
block: Rework bio_for_each_folio_all()
block: Don't block on s_umount from __invalidate_super()
bcache: move closures to lib/
MAINTAINERS: Add entry for closures
closures: closure_wait_event()
closures: closure_nr_remaining()
closures: Add a missing include
iov_iter: copy_folio_from_iter_atomic()
MAINTAINERS: Add entry for generic-radix-tree lib/generic-radix-tree.c: Don't overflow in peek() lib/generic-radix-tree.c: Add a missing include lib/generic-radix-tree.c: Add peek_prev() lib/string_helpers: string_get_size() now returns characters wrote
lib: Export errname
MAINTAINERS: Add entry for bcachefs

 MAINTAINERS                                   |  39 +
 block/bdev.c                                  |   2 +-
 block/bio.c                                   |  57 +-
 block/blk-core.c                              |   1 +
 block/blk-map.c                               |  38 +-
 block/blk.h                                   |   1 -
 block/bounce.c                                |  12 +-
 drivers/md/bcache/Kconfig                     |  10 +-
 drivers/md/bcache/Makefile                    |   4 +-
 drivers/md/bcache/bcache.h                    |   2 +-
 drivers/md/bcache/btree.c                     |   8 +-
 drivers/md/bcache/super.c                     |   1 -
 drivers/md/bcache/util.h                      |   3 +-
 drivers/md/dm-crypt.c                         |  10 +-
 drivers/md/raid1.c                            |   4 +-
 fs/btrfs/disk-io.c                            |   4 +-
 fs/btrfs/extent_io.c                          |  50 +-
 fs/btrfs/raid56.c                             |  14 +-
 fs/crypto/bio.c                               |   9 +-
 fs/dcache.c                                   |  12 +-
 fs/erofs/zdata.c                              |   4 +-
 fs/ext4/page-io.c                             |   8 +-
 fs/ext4/readpage.c                            |   4 +-
 fs/f2fs/data.c                                |  20 +-
 fs/gfs2/lops.c                                |  10 +-
 fs/gfs2/meta_io.c                             |   8 +-
 fs/inode.c                                    | 218 +++--
 fs/iomap/buffered-io.c                        |  14 +-
 fs/mpage.c                                    |   4 +-
 fs/squashfs/block.c                           |  48 +-
 fs/squashfs/lz4_wrapper.c                     |  17 +-
 fs/squashfs/lzo_wrapper.c                     |  17 +-
 fs/squashfs/xz_wrapper.c                      |  19 +-
 fs/squashfs/zlib_wrapper.c                    |  18 +-
 fs/squashfs/zstd_wrapper.c                    |  19 +-
 fs/super.c                                    |  40 +-
 fs/verity/verify.c                            |   9 +-
 include/linux/bio.h                           | 132 +--
 include/linux/blkdev.h                        |   1 +
 include/linux/bvec.h                          |  70 +-
 .../md/bcache => include/linux}/closure.h     |  46 +-
 include/linux/compiler_attributes.h           |   5 +
 include/linux/dcache.h                        |   1 +
 include/linux/fs.h                            |  10 +-
 include/linux/generic-radix-tree.h            |  68 +-
 include/linux/list_bl.h                       |  22 +
 include/linux/lockdep.h                       |  10 +
 include/linux/lockdep_types.h                 |   2 +-
 include/linux/mean_and_variance.h             | 219 +++++
 include/linux/sched.h                         |   1 +
 include/linux/six.h                           | 210 +++++
 include/linux/string_helpers.h                |   4 +-
 include/linux/uio.h                           |   2 +
 include/linux/vmalloc.h                       |   1 +
 init/init_task.c                              |   1 +
 kernel/Kconfig.locks                          |   3 +
 kernel/locking/Makefile                       |   1 +
 kernel/locking/lockdep.c                      |  46 ++
 kernel/locking/six.c                          | 779 ++++++++++++++++++
 kernel/module/main.c                          |   4 +-
 kernel/stacktrace.c                           |   2 +
 lib/Kconfig                                   |   3 +
 lib/Kconfig.debug                             |  18 +
 lib/Makefile                                  |   2 +
 {drivers/md/bcache => lib}/closure.c          |  36 +-
 lib/errname.c                                 |   1 +
 lib/generic-radix-tree.c                      |  76 +-
 lib/iov_iter.c                                |  53 +-
 lib/math/Kconfig                              |   3 +
 lib/math/Makefile                             |   2 +
 lib/math/mean_and_variance.c                  | 136 +++
 lib/math/mean_and_variance_test.c             | 155 ++++
 lib/string_helpers.c                          |   8 +-
 mm/nommu.c                                    |  18 +
 mm/vmalloc.c                                  |  21 +
 75 files changed, 2485 insertions(+), 445 deletions(-)
 rename {drivers/md/bcache => include/linux}/closure.h (93%)
 create mode 100644 include/linux/mean_and_variance.h
 create mode 100644 include/linux/six.h
 create mode 100644 kernel/locking/six.c
 rename {drivers/md/bcache => lib}/closure.c (88%)
 create mode 100644 lib/math/mean_and_variance.c
 create mode 100644 lib/math/mean_and_variance_test.c
Signature · 1 line
2.40.1