summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-10 19:00:37 -0800
committerJoel Becker <joel.becker@oracle.com>2009-09-04 16:07:48 -0700
commit6e5a3d7538ad4e46a976862f593faf65750e37cc (patch)
treee87ce6d69bdbcce23eed0a195a7f80a59c01d3d9 /fs/ocfs2/super.c
parent47460d65a483529b3bc2bf6ccf461ad45f94df83 (diff)
downloadop-kernel-dev-6e5a3d7538ad4e46a976862f593faf65750e37cc.zip
op-kernel-dev-6e5a3d7538ad4e46a976862f593faf65750e37cc.tar.gz
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/super.c')
-rw-r--r--fs/ocfs2/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 8f217f6..746ed5d 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1683,8 +1683,8 @@ static void ocfs2_inode_init_once(void *data)
ocfs2_lock_res_init_once(&oi->ip_inode_lockres);
ocfs2_lock_res_init_once(&oi->ip_open_lockres);
- ocfs2_metadata_cache_init(&oi->ip_metadata_cache, &oi->ip_lock,
- &oi->ip_io_mutex);
+ ocfs2_metadata_cache_init(&oi->ip_metadata_cache,
+ &ocfs2_inode_caching_ops);
inode_init_once(&oi->vfs_inode);
}
OpenPOWER on IntegriCloud