]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: account for the correct number of extents for delalloc reservations
authorJosef Bacik <jbacik@fb.com>
Fri, 13 Mar 2015 19:12:23 +0000 (15:12 -0400)
committerChris Mason <clm@fb.com>
Fri, 13 Mar 2015 20:46:59 +0000 (13:46 -0700)
commitdfddd27a5279e76179917f26358ed20695e74cb4
tree80d324d61437f08db1e4c67d3255c6eb96965792
parent1258f3e2eabe048fab655bcce43bec746ae12992
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>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c