]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not reuse objectid of deleted snapshot/subvol
authorYan, Zheng <zheng.yan@oracle.com>
Mon, 21 Sep 2009 19:56:00 +0000 (15:56 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 21 Sep 2009 19:56:00 +0000 (15:56 -0400)
commita3763c159ef92d00be7ab5be6a014af27e0f88fe
tree473f3cc94b4a93a0a5f6f19b1832ef2e6b7ecf62
parent73d36db8cfa1b8ffb598aed7b92ea3e4b7e75307
Btrfs: do not reuse objectid of deleted snapshot/subvol

The new back reference format does not allow reusing objectid of
deleted snapshot/subvol. So we use ++highest_objectid to allocate
objectid for new snapshot/subvol.

Now we use ++highest_objectid to allocate objectid for both new inode
and new snapshot/subvolume, so this patch removes 'find hole' code in
btrfs_find_free_objectid.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/inode-item.c
fs/btrfs/inode-map.c
fs/btrfs/inode.c
fs/btrfs/tree-log.c