]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/file.c
Btrf: cleanup: don't check for root_refs == 0 twice
[karo-tx-linux.git] / fs / btrfs / file.c
index 5e7ea996f105696fdb054923e257412f1660cfe9..5ba87b0d2ef86d1563705df7ae62f48e59b7cbae 100644 (file)
@@ -310,11 +310,6 @@ static int __btrfs_run_defrag_inode(struct btrfs_fs_info *fs_info,
                goto cleanup;
        }
 
-       if (btrfs_root_refs(&inode_root->root_item) == 0) {
-               ret = -ENOENT;
-               goto cleanup;
-       }
-
        key.objectid = defrag->ino;
        btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY);
        key.offset = 0;