]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: handle enospc accounting for free space inodes
authorJosef Bacik <josef@redhat.com>
Tue, 30 Aug 2011 14:19:10 +0000 (10:19 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:20 +0000 (21:20 -0500)
commitcdcd963fac0d3b35236780c3755f71ac661dfbe0
treef24bb1fb5dec2aad4f0ea6c5f98277b25dcdc4b4
parentc8d9fea2703a45fddf52692b2e44a8dac77de7da
Btrfs: handle enospc accounting for free space inodes

Since free space inodes now use normal checksumming we need to make sure to
account for their metadata use.  So reserve metadata space, and then if we fail
to write out the metadata we can just release it, otherwise it will be freed up
when the io completes.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit c09544e07f8cdc455ed8615d4c067d694c33bd18)
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode-map.c
fs/btrfs/inode.c