]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext4/ext4.h
ext4: Wait for proper transaction commit on fsync
[net-next-2.6.git] / fs / ext4 / ext4.h
index 4cfc2f0edb3fd0ddc1f400670aadde03f435ea82..ab31e65d46d017880644a540e23f05bca5398a92 100644 (file)
@@ -709,6 +709,13 @@ struct ext4_inode_info {
        struct list_head i_aio_dio_complete_list;
        /* current io_end structure for async DIO write*/
        ext4_io_end_t *cur_aio_dio;
+
+       /*
+        * Transactions that contain inode's metadata needed to complete
+        * fsync and fdatasync, respectively.
+        */
+       tid_t i_sync_tid;
+       tid_t i_datasync_tid;
 };
 
 /*