btrfs: add snapshot_id to btrfs_header and root_item
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | btrfs: take into account BTRFS_HEADER_FLAG_V2 in the item/node helpersfs/ | +9 | 0 replies | |
| 2/11 | btrfs: add global_tree_id to btrfs_root_itemfs/ include/ | +7 | 0 replies | |
| 3/11 | btrfs: add snapshot_id to the btrfs_root_itemfs/ include/ | +9 | 0 replies | |
| 4/11 | btrfs: handle the new snapshot_id field properlyfs/ fs/ | +19 | 0 replies | |
| 5/11 | btrfs: add a sanity checker for the header flagsfs/ | +27 | 0 replies | |
| 6/11 | btrfs: zero dummy extent buffersfs/ | +1 | 0 replies | |
| 7/11 | btrfs: zero out temporary superblock buffer headerfs/ | +2 | 0 replies | |
| 8/11 | btrfs: add a debug range check for header_v2fs/ | +19 | 0 replies | |
| 9/11 | btrfs: selftests: add a test for delete_one_dir_namefs/ | +169 | 0 replies | |
| 10/11 | btrfs: don't do the global_id thing if we are a DUMMY_FS_INFOfs/ | +4 | 0 replies | |
| 11/11 | btrfs: selftests: run with EXTENT_TREE_V2 set as wellfs/ fs/ fs/ +7 more | +115 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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