diff options
Diffstat (limited to 'fs/btrfs/root-tree.c')
| -rw-r--r-- | fs/btrfs/root-tree.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 1389b69059de..38bb47e7d6b1 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | * Boston, MA 021110-1307, USA. | 16 | * Boston, MA 021110-1307, USA. | 
| 17 | */ | 17 | */ | 
| 18 | 18 | ||
| 19 | #include <linux/err.h> | ||
| 19 | #include <linux/uuid.h> | 20 | #include <linux/uuid.h> | 
| 20 | #include "ctree.h" | 21 | #include "ctree.h" | 
| 21 | #include "transaction.h" | 22 | #include "transaction.h" | 
| @@ -271,7 +272,7 @@ int btrfs_find_orphan_roots(struct btrfs_root *tree_root) | |||
| 271 | key.offset++; | 272 | key.offset++; | 
| 272 | 273 | ||
| 273 | root = btrfs_read_fs_root(tree_root, &root_key); | 274 | root = btrfs_read_fs_root(tree_root, &root_key); | 
| 274 | err = PTR_RET(root); | 275 | err = PTR_ERR_OR_ZERO(root); | 
| 275 | if (err && err != -ENOENT) { | 276 | if (err && err != -ENOENT) { | 
| 276 | break; | 277 | break; | 
| 277 | } else if (err == -ENOENT) { | 278 | } else if (err == -ENOENT) { | 
