Btrfs: Update the highest objectid in a root after log replay is done

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2008-09-11 15:51:21 -04:00
parent 4bef084857
commit 8d5bf1cb35
2 changed files with 9 additions and 1 deletions

View File

@@ -2239,8 +2239,9 @@ static int btrfs_set_inode_index(struct inode *dir, struct inode *inode,
if (BTRFS_I(dir)->index_cnt == (u64)-1) {
ret = btrfs_set_inode_index_count(dir);
if (ret)
if (ret) {
return ret;
}
}
*index = BTRFS_I(dir)->index_cnt;