aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-10 22:00:37 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:07:48 -0400
commit6e5a3d7538ad4e46a976862f593faf65750e37cc (patch)
treee87ce6d69bdbcce23eed0a195a7f80a59c01d3d9 /fs/ocfs2/ocfs2.h
parent47460d65a483529b3bc2bf6ccf461ad45f94df83 (diff)
ocfs2: Change metadata caching locks to an operations structure.
We don't really want to cart around too many new fields on the ocfs2_caching_info structure. So let's wrap all our access of the parent object in a set of operations. One pointer on caching_info, and more flexibility to boot. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r--fs/ocfs2/ocfs2.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h
index eef3bd077c10..6e54a496299e 100644
--- a/fs/ocfs2/ocfs2.h
+++ b/fs/ocfs2/ocfs2.h
@@ -68,14 +68,14 @@ enum ocfs2_caching_info_flags {
68 OCFS2_CACHE_FL_INLINE = 1<<1, 68 OCFS2_CACHE_FL_INLINE = 1<<1,
69}; 69};
70 70
71struct ocfs2_caching_operations;
71struct ocfs2_caching_info { 72struct ocfs2_caching_info {
72 /* 73 /*
73 * The parent structure provides the locks, but because the 74 * The parent structure provides the locks, but because the
74 * parent structure can differ, struct ocfs2_caching_info needs 75 * parent structure can differ, it provides locking operations
75 * its own pointers to them. 76 * to struct ocfs2_caching_info.
76 */ 77 */
77 spinlock_t *ci_lock; 78 const struct ocfs2_caching_operations *ci_ops;
78 struct mutex *ci_io_mutex;
79 79
80 unsigned int ci_flags; 80 unsigned int ci_flags;
81 unsigned int ci_num_cached; 81 unsigned int ci_num_cached;