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>
This commit is contained in:
@@ -1683,7 +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->vfs_inode);
|
||||
ocfs2_metadata_cache_init(&oi->ip_metadata_cache, &oi->ip_lock,
|
||||
&oi->ip_io_mutex);
|
||||
|
||||
inode_init_once(&oi->vfs_inode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user