[PATCH] reiserfs: fix transaction overflowing
[deliverable/linux.git] / include / linux / reiserfs_fs.h
index dad78cecfd207c079339e8956c8a1812240c7070..912f1b7cb18f375123b99efa0046fc793491a7ff 100644 (file)
@@ -1704,6 +1704,11 @@ static inline int reiserfs_transaction_running(struct super_block *s)
        return 0;
 }
 
+static inline int reiserfs_transaction_free_space(struct reiserfs_transaction_handle *th)
+{
+       return th->t_blocks_allocated - th->t_blocks_logged;
+}
+
 int reiserfs_async_progress_wait(struct super_block *s);
 
 struct reiserfs_transaction_handle *reiserfs_persistent_transaction(struct
This page took 0.027771 seconds and 5 git commands to generate.