Btrfs: proper -ENOSPC handling
[linux-2.6-block.git] / fs / btrfs / btrfs_inode.h
index 82ee56bba29966e5dee552d764bb0e60fbc8bca9..a54d354cefcb71894a89975fae23ff94a9b939ad 100644 (file)
@@ -127,6 +127,14 @@ struct btrfs_inode {
         */
        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