aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/inode.h')
-rw-r--r--fs/ocfs2/inode.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h
index 2f37af9bcc4a..b79c371a9d27 100644
--- a/fs/ocfs2/inode.h
+++ b/fs/ocfs2/inode.h
@@ -128,8 +128,8 @@ struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 feoff, unsigned flags,
128 int sysfile_type); 128 int sysfile_type);
129int ocfs2_inode_init_private(struct inode *inode); 129int ocfs2_inode_init_private(struct inode *inode);
130int ocfs2_inode_revalidate(struct dentry *dentry); 130int ocfs2_inode_revalidate(struct dentry *dentry);
131int ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe, 131void ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe,
132 int create_ino); 132 int create_ino);
133void ocfs2_read_inode(struct inode *inode); 133void ocfs2_read_inode(struct inode *inode);
134void ocfs2_read_inode2(struct inode *inode, void *opaque); 134void ocfs2_read_inode2(struct inode *inode, void *opaque);
135ssize_t ocfs2_rw_direct(int rw, struct file *filp, char *buf, 135ssize_t ocfs2_rw_direct(int rw, struct file *filp, char *buf,
@@ -153,4 +153,16 @@ static inline blkcnt_t ocfs2_inode_sector_count(struct inode *inode)
153 return (blkcnt_t)(OCFS2_I(inode)->ip_clusters << c_to_s_bits); 153 return (blkcnt_t)(OCFS2_I(inode)->ip_clusters << c_to_s_bits);
154} 154}
155 155
156/* Validate that a bh contains a valid inode */
157int ocfs2_validate_inode_block(struct super_block *sb,
158 struct buffer_head *bh);
159/*
160 * Read an inode block into *bh. If *bh is NULL, a bh will be allocated.
161 * This is a cached read. The inode will be validated with
162 * ocfs2_validate_inode_block().
163 */
164int ocfs2_read_inode_block(struct inode *inode, struct buffer_head **bh);
165/* The same, but can be passed OCFS2_BH_* flags */
166int ocfs2_read_inode_block_full(struct inode *inode, struct buffer_head **bh,
167 int flags);
156#endif /* OCFS2_INODE_H */ 168#endif /* OCFS2_INODE_H */