]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't reserve data with extents locked in btrfs_fallocate
authorChris Mason <chris.mason@oracle.com>
Wed, 1 Feb 2012 01:27:41 +0000 (20:27 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 1 Feb 2012 01:27:41 +0000 (20:27 -0500)
commit6311214b26d01f85f2ed6f0fb6cc24cbcb04ad28
tree7cf01b839f68a612b8d612e7eb6315955f792d73
parent02840bfc80eca99b095b1342007c6d151f146a69
Btrfs: don't reserve data with extents locked in btrfs_fallocate

btrfs_fallocate tries to allocate space only if ranges in the file don't
already exist.  But the enospc checks it does are not allowed with
extents locked.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c