diff options
Diffstat (limited to 'fs/ocfs2/inode.h')
-rw-r--r-- | fs/ocfs2/inode.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h index ea71525aad41..ba4fe07b293c 100644 --- a/fs/ocfs2/inode.h +++ b/fs/ocfs2/inode.h | |||
@@ -60,12 +60,6 @@ struct ocfs2_inode_info | |||
60 | 60 | ||
61 | u32 ip_dir_start_lookup; | 61 | u32 ip_dir_start_lookup; |
62 | 62 | ||
63 | /* next two are protected by trans_inc_lock */ | ||
64 | /* which transaction were we created on? Zero if none. */ | ||
65 | unsigned long ip_created_trans; | ||
66 | /* last transaction we were a part of. */ | ||
67 | unsigned long ip_last_trans; | ||
68 | |||
69 | struct ocfs2_caching_info ip_metadata_cache; | 63 | struct ocfs2_caching_info ip_metadata_cache; |
70 | 64 | ||
71 | struct ocfs2_extent_map ip_extent_map; | 65 | struct ocfs2_extent_map ip_extent_map; |
@@ -106,8 +100,6 @@ struct ocfs2_inode_info | |||
106 | #define OCFS2_INODE_MAYBE_ORPHANED 0x00000020 | 100 | #define OCFS2_INODE_MAYBE_ORPHANED 0x00000020 |
107 | /* Does someone have the file open O_DIRECT */ | 101 | /* Does someone have the file open O_DIRECT */ |
108 | #define OCFS2_INODE_OPEN_DIRECT 0x00000040 | 102 | #define OCFS2_INODE_OPEN_DIRECT 0x00000040 |
109 | /* Indicates that the metadata cache should be used as an array. */ | ||
110 | #define OCFS2_INODE_CACHE_INLINE 0x00000080 | ||
111 | 103 | ||
112 | static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) | 104 | static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) |
113 | { | 105 | { |
@@ -120,6 +112,12 @@ static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) | |||
120 | extern struct kmem_cache *ocfs2_inode_cache; | 112 | extern struct kmem_cache *ocfs2_inode_cache; |
121 | 113 | ||
122 | extern const struct address_space_operations ocfs2_aops; | 114 | extern const struct address_space_operations ocfs2_aops; |
115 | extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops; | ||
116 | |||
117 | static inline struct ocfs2_caching_info *INODE_CACHE(struct inode *inode) | ||
118 | { | ||
119 | return &OCFS2_I(inode)->ip_metadata_cache; | ||
120 | } | ||
123 | 121 | ||
124 | void ocfs2_clear_inode(struct inode *inode); | 122 | void ocfs2_clear_inode(struct inode *inode); |
125 | void ocfs2_delete_inode(struct inode *inode); | 123 | void ocfs2_delete_inode(struct inode *inode); |
@@ -172,4 +170,10 @@ int ocfs2_read_inode_block(struct inode *inode, struct buffer_head **bh); | |||
172 | /* The same, but can be passed OCFS2_BH_* flags */ | 170 | /* The same, but can be passed OCFS2_BH_* flags */ |
173 | int ocfs2_read_inode_block_full(struct inode *inode, struct buffer_head **bh, | 171 | int ocfs2_read_inode_block_full(struct inode *inode, struct buffer_head **bh, |
174 | int flags); | 172 | int flags); |
173 | |||
174 | static inline struct ocfs2_inode_info *cache_info_to_inode(struct ocfs2_caching_info *ci) | ||
175 | { | ||
176 | return container_of(ci, struct ocfs2_inode_info, ip_metadata_cache); | ||
177 | } | ||
178 | |||
175 | #endif /* OCFS2_INODE_H */ | 179 | #endif /* OCFS2_INODE_H */ |