aboutsummaryrefslogtreecommitdiff
path: root/e2fsck/jfs_user.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-05-25 19:29:34 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-05-25 21:18:15 -0400
commit81f95d43d52adef4d46a9c60d4cbb98ed5043062 (patch)
tree6bd444867a18dae8b34c6c36b475a22ce420a5fc /e2fsck/jfs_user.h
parent2df733facd99261a4c462f76f72e143e803487d0 (diff)
downloade2fsprogs-81f95d43d52adef4d46a9c60d4cbb98ed5043062.tar.gz
libext2fs, libe2p, misc: git rid of jfs_user.h
Having multiple versions of jfs_user.h was confusing the Android build. Clean up things by removing the lib/ext2fs/jfs_user.h and misc/jfs_user.h and simplifying how we emulate the kernel infrastructure needed by journal replay code and removing the kernel-specific lines from kernel-jbd.h. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/jfs_user.h')
-rw-r--r--e2fsck/jfs_user.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/e2fsck/jfs_user.h b/e2fsck/jfs_user.h
index f05c18c1..e580b272 100644
--- a/e2fsck/jfs_user.h
+++ b/e2fsck/jfs_user.h
@@ -67,8 +67,6 @@ struct kdev_s {
#define K_DEV_FS 1
#define K_DEV_JOURNAL 2
-typedef struct kdev_s *kdev_t;
-
#define lock_buffer(bh) do {} while (0)
#define unlock_buffer(bh) do {} while (0)
#define buffer_req(bh) 1
@@ -200,4 +198,18 @@ extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
#endif /* DEBUGFS */
+/* recovery.c */
+extern int journal_recover (journal_t *journal);
+extern int journal_skip_recovery (journal_t *);
+
+/* revoke.c */
+extern int journal_init_revoke(journal_t *, int);
+extern void journal_destroy_revoke(journal_t *);
+extern void journal_destroy_revoke_caches(void);
+extern int journal_init_revoke_caches(void);
+
+extern int journal_set_revoke(journal_t *, unsigned long long, tid_t);
+extern int journal_test_revoke(journal_t *, unsigned long long, tid_t);
+extern void journal_clear_revoke(journal_t *);
+
#endif /* _JFS_USER_H */