]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
btrfs: Don't BUG_ON alloc_path errors in btrfs_truncate_inode_items
authorMark Fasheh <mfasheh@suse.com>
Tue, 12 Jul 2011 23:44:10 +0000 (16:44 -0700)
committerMark Fasheh <mfasheh@suse.com>
Thu, 14 Jul 2011 21:14:45 +0000 (14:14 -0700)
commit0eb0e19cde6f01397ef8c0e094e44beb75c62a1e
tree136b1858c5c1cf6f5eb8979d153f18248b1dbf4c
parent1e5063d093b5f024ae35bf835ca07463de2c1a1f
btrfs: Don't BUG_ON alloc_path errors in btrfs_truncate_inode_items

I moved the path allocation up a few lines to the top of the function so
that we couldn't get into the state where we've dropped delayed items and
the extent cache but fail due to -ENOMEM.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/btrfs/inode.c