Btrfs: __btrfs_buffered_write: Reserve/release extents aligned to block size
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Thu, 21 Jan 2016 10:25:53 +0000 (15:55 +0530)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Feb 2016 18:23:47 +0000 (19:23 +0100)
commit2e78c927d79333f299a8ac81c2fd2952caeef335
tree799c374c0275022c371b58e47309676069d71be4
parente410e34fad913dd568ec28d2a9949694324c14db
Btrfs: __btrfs_buffered_write: Reserve/release extents aligned to block size

Currently, the code reserves/releases extents in multiples of PAGE_CACHE_SIZE
units. Fix this by doing reservation/releases in block size units.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/file.c