]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/btrfs/btrfs_inode.h
Btrfs: tree logging unlink/rename fixes
[linux-2.6-omap-h63xx.git] / fs / btrfs / btrfs_inode.h
index 72677ce2b74fc87b1ff6a277906492389085f687..3af4cfb5654c609067d801c75f961eb1d39445bb 100644 (file)
@@ -86,12 +86,6 @@ struct btrfs_inode {
         */
        u64 logged_trans;
 
-       /*
-        * trans that last made a change that should be fully fsync'd.  This
-        * gets reset to zero each time the inode is logged
-        */
-       u64 log_dirty_trans;
-
        /* total number of bytes pending delalloc, used by stat to calc the
         * real block usage of the file
         */
@@ -121,6 +115,13 @@ struct btrfs_inode {
        /* the start of block group preferred for allocations. */
        u64 block_group;
 
+       /* the fsync log has some corner cases that mean we have to check
+        * directories to see if any unlinks have been done before
+        * the directory was logged.  See tree-log.c for all the
+        * details
+        */
+       u64 last_unlink_trans;
+
        struct inode vfs_inode;
 };