summaryrefslogtreecommitdiffstats
path: root/sound/isa/opl3sa2.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2017-10-19 14:15:57 -0400
committerDavid Sterba <dsterba@suse.com>2017-11-01 20:45:35 +0100
commit69fe2d75dd91d0124ad2ab6e9fef07633bd730e0 (patch)
treef1fce885741f552319a33c65f5957da8fe78aa77 /sound/isa/opl3sa2.c
parentdd48d4072e0cdac51edcbff66342fe2f21b5b588 (diff)
downloadblackbird-obmc-linux-69fe2d75dd91d0124ad2ab6e9fef07633bd730e0.tar.gz
blackbird-obmc-linux-69fe2d75dd91d0124ad2ab6e9fef07633bd730e0.zip
btrfs: make the delalloc block rsv per inode
The way we handle delalloc metadata reservations has gotten progressively more complicated over the years. There is so much cruft and weirdness around keeping the reserved count and outstanding counters consistent and handling the error cases that it's impossible to understand. Fix this by making the delalloc block rsv per-inode. This way we can calculate the actual size of the outstanding metadata reservations every time we make a change, and then reserve the delta based on that amount. This greatly simplifies the code everywhere, and makes the error handling in btrfs_delalloc_reserve_metadata far less terrifying. Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'sound/isa/opl3sa2.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud