ext4_balloc: fix not creating revoke records correctly
[lwext4.git] / src / ext4_trans.c
index cf7f2ca09b3ce917e237a8a0367cee2fbe4daac2..f22875186e5248f1e9d8fd25d411e0f5e47c386d 100644 (file)
  * @brief Ext4 transaction buffer operations.
  */
 
-#include "ext4_config.h"
-#include "ext4_types.h"
-#include "ext4_misc.h"
-#include "ext4_errno.h"
-#include "ext4_debug.h"
+#include <ext4_config.h>
+#include <ext4_types.h>
+#include <ext4_misc.h>
+#include <ext4_errno.h>
+#include <ext4_debug.h>
 
-#include "ext4_fs.h"
-#include "ext4_journal.h"
-
-static int ext4_trans_get_write_access(struct ext4_fs *fs __unused,
-                               struct ext4_block *block __unused)
-{
-       int r = EOK;
-#if CONFIG_JOURNALING_ENABLE
-       if (fs->jbd_journal && fs->curr_trans) {
-               struct jbd_journal *journal = fs->jbd_journal;
-               struct jbd_trans *trans = fs->curr_trans;
-               r = jbd_trans_get_access(journal, trans, block);
-       }
-#endif
-       return r;
-}
+#include <ext4_fs.h>
+#include <ext4_journal.h>
 
 int ext4_trans_set_block_dirty(struct ext4_buf *buf)
 {
@@ -86,10 +72,6 @@ int ext4_trans_block_get_noread(struct ext4_blockdev *bdev,
        if (r != EOK)
                return r;
 
-       r = ext4_trans_get_write_access(bdev->fs, b);
-       if (r != EOK)
-               ext4_block_set(bdev, b);
-
        return r;
 }
 
@@ -101,10 +83,6 @@ int ext4_trans_block_get(struct ext4_blockdev *bdev,
        if (r != EOK)
                return r;
 
-       r = ext4_trans_get_write_access(bdev->fs, b);
-       if (r != EOK)
-               ext4_block_set(bdev, b);
-
        return r;
 }