]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/inode.c
Btrfs: Update the highest objectid in a root after log replay is done
[linux-2.6-omap-h63xx.git] / fs / btrfs / inode.c
index b4dbb5c97646e6343e790e22b77332087e64def1..073fdd77c7848f7ec67168c8498a93a03f0d0ffb 100644 (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;