diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-10 19:05:07 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 19:07:47 -0400 |
commit | 47460d65a483529b3bc2bf6ccf461ad45f94df83 (patch) | |
tree | 0727cae9477749e5f2596e86253a210e79c96a83 /fs/ocfs2/super.c | |
parent | 8379e7c46cc48f51197dd663fc6676f47f2a1e71 (diff) |
ocfs2: Make the ocfs2_caching_info structure self-contained.
We want to use the ocfs2_caching_info structure in places that are not
inodes. To do that, it can no longer rely on referencing the inode
directly.
This patch moves the flags to ocfs2_caching_info->ci_flags, stores
pointers to the parent's locks on the ocfs2_caching_info, and renames
the constants and flags to reflect its independant state.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index a3f8871d21fd..8f217f6d1363 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -1683,7 +1683,8 @@ static void ocfs2_inode_init_once(void *data) | |||
1683 | ocfs2_lock_res_init_once(&oi->ip_inode_lockres); | 1683 | ocfs2_lock_res_init_once(&oi->ip_inode_lockres); |
1684 | ocfs2_lock_res_init_once(&oi->ip_open_lockres); | 1684 | ocfs2_lock_res_init_once(&oi->ip_open_lockres); |
1685 | 1685 | ||
1686 | ocfs2_metadata_cache_init(&oi->vfs_inode); | 1686 | ocfs2_metadata_cache_init(&oi->ip_metadata_cache, &oi->ip_lock, |
1687 | &oi->ip_io_mutex); | ||
1687 | 1688 | ||
1688 | inode_init_once(&oi->vfs_inode); | 1689 | inode_init_once(&oi->vfs_inode); |
1689 | } | 1690 | } |