projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Btrfs: proper -ENOSPC handling
[linux-2.6-block.git]
/
fs
/
btrfs
/
btrfs_inode.h
diff --git
a/fs/btrfs/btrfs_inode.h
b/fs/btrfs/btrfs_inode.h
index ea1ea0af8c0e6cf635c3060a08e1dd648a6fb48f..a54d354cefcb71894a89975fae23ff94a9b939ad 100644
(file)
--- a/
fs/btrfs/btrfs_inode.h
+++ b/
fs/btrfs/btrfs_inode.h
@@
-127,6
+127,14
@@
struct btrfs_inode {
*/
u64 last_unlink_trans;
*/
u64 last_unlink_trans;
+ /*
+ * These two counters are for delalloc metadata reservations. We keep
+ * track of how many extents we've accounted for vs how many extents we
+ * have.
+ */
+ int delalloc_reserved_extents;
+ int delalloc_extents;
+
/*
* ordered_data_close is set by truncate when a file that used
* to have good data has been truncated to zero. When it is set
/*
* ordered_data_close is set by truncate when a file that used
* to have good data has been truncated to zero. When it is set
@@
-138,6
+146,7
@@
struct btrfs_inode {
* of these.
*/
unsigned ordered_data_close:1;
* of these.
*/
unsigned ordered_data_close:1;
+ unsigned dummy_inode:1;
struct inode vfs_inode;
};
struct inode vfs_inode;
};