diff options
Diffstat (limited to 'fs/ocfs2/super.c')
| -rw-r--r-- | fs/ocfs2/super.c | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 6b906424902b..8aabaed2c1cb 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -122,7 +122,7 @@ static int ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend);  static int ocfs2_enable_quotas(struct ocfs2_super *osb);  static void ocfs2_disable_quotas(struct ocfs2_super *osb); -static struct dquot **ocfs2_get_dquots(struct inode *inode) +static struct dquot __rcu **ocfs2_get_dquots(struct inode *inode)  {  	return OCFS2_I(inode)->i_dquot;  } @@ -1706,18 +1706,17 @@ static int ocfs2_initialize_mem_caches(void)  				       sizeof(struct ocfs2_inode_info),  				       0,  				       (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| -						SLAB_MEM_SPREAD|SLAB_ACCOUNT), +						SLAB_ACCOUNT),  				       ocfs2_inode_init_once);  	ocfs2_dquot_cachep = kmem_cache_create("ocfs2_dquot_cache",  					sizeof(struct ocfs2_dquot),  					0, -					(SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| -						SLAB_MEM_SPREAD), +					SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT,  					NULL);  	ocfs2_qf_chunk_cachep = kmem_cache_create("ocfs2_qf_chunk_cache",  					sizeof(struct ocfs2_quota_chunk),  					0, -					(SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD), +					SLAB_RECLAIM_ACCOUNT,  					NULL);  	if (!ocfs2_inode_cachep || !ocfs2_dquot_cachep ||  	    !ocfs2_qf_chunk_cachep) { @@ -2027,8 +2026,8 @@ static int ocfs2_initialize_super(struct super_block *sb,  	cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits);  	bbits = le32_to_cpu(di->id2.i_super.s_blocksize_bits);  	sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits); -	memcpy(&sb->s_uuid, di->id2.i_super.s_uuid, -	       sizeof(di->id2.i_super.s_uuid)); +	super_set_uuid(sb, di->id2.i_super.s_uuid, +		       sizeof(di->id2.i_super.s_uuid));  	osb->osb_dx_mask = (1 << (cbits - bbits)) - 1;  |