]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:42 +0000 (15:12 -0400)
commite2009920793d1f32a191c0e8bacad5a11a2ac529
treec9943e56457ac64e2223396841e043e4514462e0
parent7c65b4e1715354dbc23b047d26923d8d6b70ba67
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>
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode-map.c
fs/btrfs/inode.c