aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-04-15 20:26:42 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-05-01 22:43:25 -0400
commite91b9194bc872b52b98789ab102d43736153d67a (patch)
treeb9381517569138a2149db43c81e8c67035401f9c
parent9fbc000786baa45c1b9763aded624228ae25c911 (diff)
ocfs2: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/ocfs2/super.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 96ae7cedd487..7982a93e630f 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -134,7 +134,7 @@ static int ocfs2_get_sector(struct super_block *sb,
134 int block, 134 int block,
135 int sect_size); 135 int sect_size);
136static struct inode *ocfs2_alloc_inode(struct super_block *sb); 136static struct inode *ocfs2_alloc_inode(struct super_block *sb);
137static void ocfs2_destroy_inode(struct inode *inode); 137static void ocfs2_free_inode(struct inode *inode);
138static int ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend); 138static int ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend);
139static int ocfs2_enable_quotas(struct ocfs2_super *osb); 139static int ocfs2_enable_quotas(struct ocfs2_super *osb);
140static void ocfs2_disable_quotas(struct ocfs2_super *osb); 140static void ocfs2_disable_quotas(struct ocfs2_super *osb);
@@ -147,7 +147,7 @@ static struct dquot **ocfs2_get_dquots(struct inode *inode)
147static const struct super_operations ocfs2_sops = { 147static const struct super_operations ocfs2_sops = {
148 .statfs = ocfs2_statfs, 148 .statfs = ocfs2_statfs,
149 .alloc_inode = ocfs2_alloc_inode, 149 .alloc_inode = ocfs2_alloc_inode,
150 .destroy_inode = ocfs2_destroy_inode, 150 .free_inode = ocfs2_free_inode,
151 .drop_inode = ocfs2_drop_inode, 151 .drop_inode = ocfs2_drop_inode,
152 .evict_inode = ocfs2_evict_inode, 152 .evict_inode = ocfs2_evict_inode,
153 .sync_fs = ocfs2_sync_fs, 153 .sync_fs = ocfs2_sync_fs,
@@ -575,17 +575,11 @@ static struct inode *ocfs2_alloc_inode(struct super_block *sb)
575 return &oi->vfs_inode; 575 return &oi->vfs_inode;
576} 576}
577 577
578static void ocfs2_i_callback(struct rcu_head *head) 578static void ocfs2_free_inode(struct inode *inode)
579{ 579{
580 struct inode *inode = container_of(head, struct inode, i_rcu);
581 kmem_cache_free(ocfs2_inode_cachep, OCFS2_I(inode)); 580 kmem_cache_free(ocfs2_inode_cachep, OCFS2_I(inode));
582} 581}
583 582
584static void ocfs2_destroy_inode(struct inode *inode)
585{
586 call_rcu(&inode->i_rcu, ocfs2_i_callback);
587}
588
589static unsigned long long ocfs2_max_file_offset(unsigned int bbits, 583static unsigned long long ocfs2_max_file_offset(unsigned int bbits,
590 unsigned int cbits) 584 unsigned int cbits)
591{ 585{