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)
commitd98456fcafa6f3fd1985f9b7429aaa3531c6bfa0
tree7cf01b839f68a612b8d612e7eb6315955f792d73
parent9998eb703490589c3e8f1bf09b15203156776edb
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