]> git.hungrycats.org Git - linux/commit
Btrfs: account for the correct number of extents for delalloc reservations
authorJosef Bacik <jbacik@fb.com>
Fri, 13 Mar 2015 19:07:45 +0000 (15:07 -0400)
committerJosef Bacik <jbacik@fb.com>
Mon, 16 Mar 2015 20:28:09 +0000 (16:28 -0400)
commit3075d58995b8e636ec3b571c23a1bb86c9713d46
treef924cac6dd7e4adc87388fae9b934b9541ac7aea
parent777414aee6f9fc2906810e1a05675cd79e4620be
Btrfs: account for the correct number of extents for delalloc reservations

Direct IO can easily pass in an buffer that is greater than
BTRFS_MAX_EXTENT_SIZE, so take this into account when reserving extents in the
delalloc reservation code.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/extent-tree.c