• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _LINUX_JBD_H
20 #define _LINUX_JBD_H
21 #include "jfs_compat.h"
22 #define JFS_DEBUG
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define jfs_debug jbd_debug
25 #define journal_oom_retry 1
26 #undef JBD_PARANOID_IOFAIL
27 #define JBD_DEFAULT_MAX_COMMIT_AGE 5
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define jbd_debug(f, a...)
30 #define jbd_kmalloc(size, flags)   __jbd_kmalloc(__FUNCTION__, (size), (flags), journal_oom_retry)
31 #define jbd_rep_kmalloc(size, flags)   __jbd_kmalloc(__FUNCTION__, (size), (flags), 1)
32 #define JFS_MIN_JOURNAL_BLOCKS 1024
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define JFS_MAGIC_NUMBER 0xc03b3998U
35 #define JFS_DESCRIPTOR_BLOCK 1
36 #define JFS_COMMIT_BLOCK 2
37 #define JFS_SUPERBLOCK_V1 3
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define JFS_SUPERBLOCK_V2 4
40 #define JFS_REVOKE_BLOCK 5
41 typedef struct journal_header_s
42 {
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __be32 h_magic;
45  __be32 h_blocktype;
46  __be32 h_sequence;
47 } journal_header_t;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 typedef struct journal_block_tag_s
50 {
51  __be32 t_blocknr;
52  __be32 t_flags;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 } journal_block_tag_t;
55 typedef struct journal_revoke_header_s
56 {
57  journal_header_t r_header;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __be32 r_count;
60 } journal_revoke_header_t;
61 #define JFS_FLAG_ESCAPE 1
62 #define JFS_FLAG_SAME_UUID 2
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define JFS_FLAG_DELETED 4
65 #define JFS_FLAG_LAST_TAG 8
66 typedef struct journal_superblock_s
67 {
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  journal_header_t s_header;
70  __be32 s_blocksize;
71  __be32 s_maxlen;
72  __be32 s_first;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  __be32 s_sequence;
75  __be32 s_start;
76  __be32 s_errno;
77  __be32 s_feature_compat;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  __be32 s_feature_incompat;
80  __be32 s_feature_ro_compat;
81  __u8 s_uuid[16];
82  __be32 s_nr_users;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  __be32 s_dynsuper;
85  __be32 s_max_transaction;
86  __be32 s_max_trans_data;
87  __u32 s_padding[44];
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __u8 s_users[16*48];
90 } journal_superblock_t;
91 #define JFS_HAS_COMPAT_FEATURE(j,mask)   ((j)->j_format_version >= 2 &&   ((j)->j_superblock->s_feature_compat & cpu_to_be32((mask))))
92 #define JFS_HAS_RO_COMPAT_FEATURE(j,mask)   ((j)->j_format_version >= 2 &&   ((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask))))
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define JFS_HAS_INCOMPAT_FEATURE(j,mask)   ((j)->j_format_version >= 2 &&   ((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))
95 #define JFS_FEATURE_INCOMPAT_REVOKE 0x00000001
96 #define JFS_KNOWN_COMPAT_FEATURES 0
97 #define JFS_KNOWN_ROCOMPAT_FEATURES 0
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define JFS_KNOWN_INCOMPAT_FEATURES JFS_FEATURE_INCOMPAT_REVOKE
100 #define BJ_None 0
101 #define BJ_SyncData 1
102 #define BJ_Metadata 2
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define BJ_Forget 3
105 #define BJ_IO 4
106 #define BJ_Shadow 5
107 #define BJ_LogCtl 6
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define BJ_Reserved 7
110 #define BJ_Locked 8
111 #define BJ_Types 9
112 #endif
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114