Skip to content

btrfs: add snapshot_id to btrfs_header and root_item

Josef Bacik linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11btrfs: take into account BTRFS_HEADER_FLAG_V2 in the item/node helpersfs/btrfs/ctree.h+9 -10 replies
2/11btrfs: add global_tree_id to btrfs_root_itemfs/btrfs/ctree.h include/uapi/linux/btrfs_tree.h+7 -10 replies
3/11btrfs: add snapshot_id to the btrfs_root_itemfs/btrfs/ctree.h include/uapi/linux/btrfs_tree.h+9 -10 replies
4/11btrfs: handle the new snapshot_id field properlyfs/btrfs/ctree.c fs/btrfs/extent-tree.c+19 -10 replies
5/11btrfs: add a sanity checker for the header flagsfs/btrfs/tree-checker.c+27 -00 replies
6/11btrfs: zero dummy extent buffersfs/btrfs/extent_io.c+1 -00 replies
7/11btrfs: zero out temporary superblock buffer headerfs/btrfs/volumes.c+2 -00 replies
8/11btrfs: add a debug range check for header_v2fs/btrfs/extent_io.c+19 -00 replies
9/11btrfs: selftests: add a test for delete_one_dir_namefs/btrfs/tests/extent-buffer-tests.c+169 -10 replies
10/11btrfs: don't do the global_id thing if we are a DUMMY_FS_INFOfs/btrfs/disk-io.c+4 -00 replies
11/11btrfs: selftests: run with EXTENT_TREE_V2 set as wellfs/btrfs/extent_io.c fs/btrfs/tests/btrfs-tests.c fs/btrfs/tests/btrfs-tests.h +7 more+115 -690 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] btrfs: add snapshot_id to btrfs_header and root_item

Hello,

This is the next series of changes for extent tree v2. This adds support for the snapshot_id to the btrfs_header and btrfs_root_item. This will allow us to track shared blocks more simply without requiring a lot of reference updates.

There are also a few extra patches tacked onto the end to add some more testing. Since we're changing the size of the btrfs_header I wanted to get as much coverage as possible on the different ways we modify leaves and nodes so I added another selftest and added support for running the selftests with extent tree v2 set.

Thanks,

Josef

Josef Bacik (11):
btrfs: take into account BTRFS_HEADER_FLAG_V2 in the item/node helpers
btrfs: add global_tree_id to btrfs_root_item
btrfs: add snapshot_id to the btrfs_root_item
btrfs: handle the new snapshot_id field properly
btrfs: add a sanity checker for the header flags
btrfs: zero dummy extent buffers
btrfs: zero out temporary superblock buffer header
btrfs: add a debug range check for header_v2
btrfs: selftests: add a test for delete_one_dir_name
btrfs: don't do the global_id thing if we are a DUMMY_FS_INFO
btrfs: selftests: run with EXTENT_TREE_V2 set as well

 fs/btrfs/ctree.c                       |  13 +-
 fs/btrfs/ctree.h                       |  14 +-
 fs/btrfs/disk-io.c                     |   4 +
 fs/btrfs/extent-tree.c                 |   7 +
 fs/btrfs/extent_io.c                   |  22 +++
 fs/btrfs/tests/btrfs-tests.c           |  77 +++++++----
 fs/btrfs/tests/btrfs-tests.h           |  18 ++-
 fs/btrfs/tests/extent-buffer-tests.c   | 181 ++++++++++++++++++++++++-
 fs/btrfs/tests/extent-io-tests.c       |   9 +-
 fs/btrfs/tests/extent-map-tests.c      |   2 +-
 fs/btrfs/tests/free-space-tests.c      |   6 +-
 fs/btrfs/tests/free-space-tree-tests.c |  21 +--
 fs/btrfs/tests/inode-tests.c           |  25 ++--
 fs/btrfs/tests/qgroup-tests.c          |   5 +-
 fs/btrfs/tree-checker.c                |  27 ++++
 fs/btrfs/volumes.c                     |   2 +
 include/uapi/linux/btrfs_tree.h        |  12 +-
 17 files changed, 376 insertions(+), 69 deletions(-)
Signature · 1 line
2.26.3