]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/btrfs/super.c
Btrfs: btrfs_iget() returns ERR_PTR
[net-next-2.6.git] / fs / btrfs / super.c
index 9ea711430466e29ba1e52175988bc1891ce01fa5..859ddaab5e02753a070f4270252222b69ec9fa9c 100644 (file)
@@ -392,8 +392,8 @@ setup_root:
        location.offset = 0;
 
        inode = btrfs_iget(sb, &location, new_root, &new);
-       if (!inode)
-               return ERR_PTR(-ENOMEM);
+       if (IS_ERR(inode))
+               return ERR_CAST(inode);
 
        /*
         * If we're just mounting the root most subvol put the inode and return