diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-06-21 16:37:03 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-07-02 11:50:45 -0400 |
commit | 7ee9e4405f264e9eda808aa5ca4522746a1af9c1 (patch) | |
tree | 66b0ebcb2594309044e3f25ab6836b09662c7601 /fs/btrfs/extent_io.h | |
parent | 925a6efb8ff0c2bdbec107ed9890e62650c83306 (diff) | |
download | op-kernel-dev-7ee9e4405f264e9eda808aa5ca4522746a1af9c1.zip op-kernel-dev-7ee9e4405f264e9eda808aa5ca4522746a1af9c1.tar.gz |
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>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 41fb81e..3b8c4e2 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -19,6 +19,7 @@ #define EXTENT_FIRST_DELALLOC (1 << 12) #define EXTENT_NEED_WAIT (1 << 13) #define EXTENT_DAMAGED (1 << 14) +#define EXTENT_NORESERVE (1 << 15) #define EXTENT_IOBITS (EXTENT_LOCKED | EXTENT_WRITEBACK) #define EXTENT_CTLBITS (EXTENT_DO_ACCOUNTING | EXTENT_FIRST_DELALLOC) |