diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-11-05 17:11:40 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-21 02:41:16 +0100 |
commit | 4724b106b9b8e8b802ca6f6d8a2f74feb8a3c375 (patch) | |
tree | 9c96c1bb9e62c5511a6df7f8b3bda18e6cded054 /fs | |
parent | btrfs: get rid of fdentry() (diff) | |
download | linux-4724b106b9b8e8b802ca6f6d8a2f74feb8a3c375.tar.xz linux-4724b106b9b8e8b802ca6f6d8a2f74feb8a3c375.zip |
Btrfs: don't BUG_ON() if we get an error walking backrefs
We can just return false for this so we stop doing the snapshot aware defrag
stuff. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index da8d2f696ac5..fd67b34e220d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2129,7 +2129,8 @@ static noinline bool record_extent_backrefs(struct btrfs_path *path, old->extent_offset, fs_info, path, record_one_backref, old); - BUG_ON(ret < 0 && ret != -ENOENT); + if (ret < 0 && ret != -ENOENT) + return false; /* no backref to be processed for this extent */ if (!old->count) { |