diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2013-01-27 23:26:00 -0700 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-02-06 09:24:40 -0500 |
commit | eb6b88d92c6df083dd09a8c471011e3788dfd7c6 (patch) | |
tree | def0ed5a9e31acce04fbe9690a2c8adfab80d6eb /fs/bfs | |
parent | 24f8ebe9189c91f1b3ecfaadd27ef0cb7c74907f (diff) | |
download | linux-3.10-eb6b88d92c6df083dd09a8c471011e3788dfd7c6.tar.gz linux-3.10-eb6b88d92c6df083dd09a8c471011e3788dfd7c6.tar.bz2 linux-3.10-eb6b88d92c6df083dd09a8c471011e3788dfd7c6.zip |
Btrfs: fix EDQUOT handling in btrfs_delalloc_reserve_metadata
When btrfs_qgroup_reserve returned a failure, we were missing a counter
operation for BTRFS_I(inode)->outstanding_extents++, leading to warning
messages about outstanding extents and space_info->bytes_may_use != 0.
Additionally, the error handling code didn't take into account that we
dropped the inode lock which might require more cleanup.
Luckily, all the cleanup code we need is already there and can be shared
with reserve_metadata_bytes, which is exactly what this patch does.
Reported-by: Lev Vainblat <lev@zadarastorage.com>
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/bfs')
0 files changed, 0 insertions, 0 deletions