diff options
author | Josef Bacik <josef@redhat.com> | 2011-12-13 18:55:58 +0100 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-12-15 17:04:24 +0100 |
commit | ee4d89f0c4967c624c92516fcc37b41069bfdc23 (patch) | |
tree | bec733b7d6f2794a86622ad76948c0be2c152170 /fs/btrfs/extent-tree.c | |
parent | Btrfs: fix leaked space in truncate (diff) | |
download | linux-ee4d89f0c4967c624c92516fcc37b41069bfdc23.tar.xz linux-ee4d89f0c4967c624c92516fcc37b41069bfdc23.zip |
Btrfs: don't panic if orphan item already exists
I've been hitting this BUG_ON() in btrfs_orphan_add when running xfstest 269 in
a loop. This is because we will add an orphan item, do the truncate, the
truncate will fail for whatever reason (*cough*ENOSPC*cough*) and then we're
left with an orphan item still in the fs. Then we come back later to do another
truncate and it blows up because we already have an orphan item. This is ok so
just fix the BUG_ON() to only BUG() if ret is not EEXIST. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions