aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2020-12-07 15:32:36 +0000
committerDavid Sterba <[email protected]>2021-02-08 21:58:50 +0000
commit23125104d8485505cd19581025a3d6fc14e9945a (patch)
tree749e513da2f0c46d71fcd6e32c09031bb82663d6 /fs/btrfs/dev-replace.c
parentbtrfs: rename btrfs_root::highest_objectid to free_objectid (diff)
downloadkernel-23125104d8485505cd19581025a3d6fc14e9945a.tar.gz
kernel-23125104d8485505cd19581025a3d6fc14e9945a.zip
btrfs: make btrfs_root::free_objectid hold the next available objectid
Adjust the way free_objectid is being initialized, it now stores BTRFS_FIRST_FREE_OBJECTID rather than the, somewhat arbitrary, BTRFS_FIRST_FREE_OBJECTID - 1. This change also has the added benefit that now it becomes unnecessary to explicitly initialize free_objectid for a newly create fs root. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions