aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/inode.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-10 23:00:41 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:07:48 -0400
commit8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170 (patch)
treee275a8f5db101a9990ba44931cfd116123112b11 /fs/ocfs2/inode.h
parent6e5a3d7538ad4e46a976862f593faf65750e37cc (diff)
ocfs2: Take the inode out of the metadata read/write paths.
We are really passing the inode into the ocfs2_read/write_blocks() functions to get at the metadata cache. This commit passes the cache directly into the metadata block functions, divorcing them from the inode. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/inode.h')
-rw-r--r--fs/ocfs2/inode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ocfs2/inode.h b/fs/ocfs2/inode.h
index cd1caca545f5..b0a71b22712c 100644
--- a/fs/ocfs2/inode.h
+++ b/fs/ocfs2/inode.h
@@ -120,6 +120,11 @@ extern struct kmem_cache *ocfs2_inode_cache;
120extern const struct address_space_operations ocfs2_aops; 120extern const struct address_space_operations ocfs2_aops;
121extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops; 121extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops;
122 122
123static inline struct ocfs2_caching_info *INODE_CACHE(struct inode *inode)
124{
125 return &OCFS2_I(inode)->ip_metadata_cache;
126}
127
123void ocfs2_clear_inode(struct inode *inode); 128void ocfs2_clear_inode(struct inode *inode);
124void ocfs2_delete_inode(struct inode *inode); 129void ocfs2_delete_inode(struct inode *inode);
125void ocfs2_drop_inode(struct inode *inode); 130void ocfs2_drop_inode(struct inode *inode);