Btrfs: Update find free objectid function for orphan cleanup code

Orphan items use BTRFS_ORPHAN_OBJECTID (-5UUL) as key objectid. This
affects the find free objectid functions, inode objectid can easily
overflow after orphan file cleanup.

---

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Zheng Yan
2008-09-05 16:43:53 -04:00
committed by Chris Mason
parent b214107eda
commit 6527cdbe68
2 changed files with 10 additions and 8 deletions

View File

@@ -82,9 +82,10 @@ struct btrfs_ordered_sum;
#define BTRFS_TREE_LOG_FIXUP_OBJECTID -7ULL
/*
* All files have objectids higher than this.
* All files have objectids in this range.
*/
#define BTRFS_FIRST_FREE_OBJECTID 256ULL
#define BTRFS_LAST_FREE_OBJECTID -256ULL
#define BTRFS_FIRST_CHUNK_TREE_OBJECTID 256ULL