diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-10 23:00:41 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 19:07:48 -0400 |
commit | 8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170 (patch) | |
tree | e275a8f5db101a9990ba44931cfd116123112b11 /fs/ocfs2/inode.h | |
parent | 6e5a3d7538ad4e46a976862f593faf65750e37cc (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.h | 5 |
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; | |||
120 | extern const struct address_space_operations ocfs2_aops; | 120 | extern const struct address_space_operations ocfs2_aops; |
121 | extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops; | 121 | extern const struct ocfs2_caching_operations ocfs2_inode_caching_ops; |
122 | 122 | ||
123 | static inline struct ocfs2_caching_info *INODE_CACHE(struct inode *inode) | ||
124 | { | ||
125 | return &OCFS2_I(inode)->ip_metadata_cache; | ||
126 | } | ||
127 | |||
123 | void ocfs2_clear_inode(struct inode *inode); | 128 | void ocfs2_clear_inode(struct inode *inode); |
124 | void ocfs2_delete_inode(struct inode *inode); | 129 | void ocfs2_delete_inode(struct inode *inode); |
125 | void ocfs2_drop_inode(struct inode *inode); | 130 | void ocfs2_drop_inode(struct inode *inode); |