]> Pileus Git - ~andy/linux/blobdiff - fs/ocfs2/ocfs2.h
ocfs2: Try to free truncate log when meeting ENOSPC in write.
[~andy/linux] / fs / ocfs2 / ocfs2.h
index 70dd3b1798f136130f4ef5ab5198012c2e3bc82d..51cd6898e7f1c1ecc16814d9b19e0f27658e0f50 100644 (file)
@@ -420,6 +420,11 @@ struct ocfs2_super
        struct inode                    *osb_tl_inode;
        struct buffer_head              *osb_tl_bh;
        struct delayed_work             osb_truncate_log_wq;
+       /*
+        * How many clusters in our truncate log.
+        * It must be protected by osb_tl_inode->i_mutex.
+        */
+       unsigned int truncated_clusters;
 
        struct ocfs2_node_map           osb_recovering_orphan_dirs;
        unsigned int                    *osb_orphan_wipes;