ext4, jbd2: add an optimized bmap for the journal inode
[linux-block.git] / include / linux / jbd2.h
index 2170e0cc279d5cb823f5be2cca53cc3d9b5eece8..6ffa34c51a11be21bea2dc0832562cb1ac54e72c 100644 (file)
@@ -1308,6 +1308,14 @@ struct journal_s
                                    struct buffer_head *bh,
                                    enum passtype pass, int off,
                                    tid_t expected_commit_id);
+
+       /**
+        * @j_bmap:
+        *
+        * Bmap function that should be used instead of the generic
+        * VFS bmap function.
+        */
+       int (*j_bmap)(struct journal_s *journal, sector_t *block);
 };
 
 #define jbd2_might_wait_for_commit(j) \