diff options
Diffstat (limited to 'fs/btrfs/inode-item.c')
-rw-r--r-- | fs/btrfs/inode-item.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode-item.c b/fs/btrfs/inode-item.c index b276a3b40a66..c3b990b661c2 100644 --- a/fs/btrfs/inode-item.c +++ b/fs/btrfs/inode-item.c | |||
@@ -22,6 +22,8 @@ int btrfs_insert_inode(struct btrfs_trans_handle *trans, struct btrfs_root | |||
22 | sizeof(*inode_item)); | 22 | sizeof(*inode_item)); |
23 | btrfs_release_path(root, path); | 23 | btrfs_release_path(root, path); |
24 | btrfs_free_path(path); | 24 | btrfs_free_path(path); |
25 | if (ret == 0 && objectid > root->highest_inode) | ||
26 | root->highest_inode = objectid; | ||
25 | return ret; | 27 | return ret; |
26 | } | 28 | } |
27 | 29 | ||