]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: check if we can nocow if we don't have data space
authorJosef Bacik <jbacik@fusionio.com>
Fri, 21 Jun 2013 20:37:03 +0000 (16:37 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 2 Jul 2013 15:50:45 +0000 (11:50 -0400)
commit7ee9e4405f264e9eda808aa5ca4522746a1af9c1
tree66b0ebcb2594309044e3f25ab6836b09662c7601
parent925a6efb8ff0c2bdbec107ed9890e62650c83306
Btrfs: check if we can nocow if we don't have data space

We always just try and reserve data space when we write, but if we are out of
space but have prealloc'ed extents we should still successfully write.  This
patch will try and see if we can write to prealloc'ed space and if we can go
ahead and allow the write to continue.  With this patch we now pass xfstests
generic/274.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/file.c
fs/btrfs/inode.c