diff options
author | Krzysztof Błaszkowski <kb@sysmikro.com.pl> | 2016-06-01 02:41:11 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2016-06-01 03:01:30 -0400 |
commit | 0e481d3c0964ef00ff3dc9f25508980619e28752 (patch) | |
tree | 08d1b676ca04ae3cc059b4543738f3828d4392fb /fs/freevxfs | |
parent | 0d83f7fc83f77d1cc8395b9e851325d8cc1892e3 (diff) |
freevxfs: remove vxfs_put_fake_inode
Signed-off-by: Krzysztof Błaszkowski <kb@sysmikro.com.pl>
[hch: split from a larget patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/freevxfs')
-rw-r--r-- | fs/freevxfs/vxfs_extern.h | 1 | ||||
-rw-r--r-- | fs/freevxfs/vxfs_inode.c | 13 | ||||
-rw-r--r-- | fs/freevxfs/vxfs_super.c | 12 |
3 files changed, 6 insertions, 20 deletions
diff --git a/fs/freevxfs/vxfs_extern.h b/fs/freevxfs/vxfs_extern.h index e3dcb4467d92..b59df797665f 100644 --- a/fs/freevxfs/vxfs_extern.h +++ b/fs/freevxfs/vxfs_extern.h | |||
@@ -56,7 +56,6 @@ extern struct kmem_cache *vxfs_inode_cachep; | |||
56 | extern void vxfs_dumpi(struct vxfs_inode_info *, ino_t); | 56 | extern void vxfs_dumpi(struct vxfs_inode_info *, ino_t); |
57 | extern struct inode * vxfs_get_fake_inode(struct super_block *, | 57 | extern struct inode * vxfs_get_fake_inode(struct super_block *, |
58 | struct vxfs_inode_info *); | 58 | struct vxfs_inode_info *); |
59 | extern void vxfs_put_fake_inode(struct inode *); | ||
60 | extern struct vxfs_inode_info * vxfs_blkiget(struct super_block *, u_long, ino_t); | 59 | extern struct vxfs_inode_info * vxfs_blkiget(struct super_block *, u_long, ino_t); |
61 | extern struct vxfs_inode_info * vxfs_stiget(struct super_block *, ino_t); | 60 | extern struct vxfs_inode_info * vxfs_stiget(struct super_block *, ino_t); |
62 | extern struct inode * vxfs_iget(struct super_block *, ino_t); | 61 | extern struct inode * vxfs_iget(struct super_block *, ino_t); |
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index 15de300a3ac6..6087ca703f12 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c | |||
@@ -296,19 +296,6 @@ vxfs_get_fake_inode(struct super_block *sbp, struct vxfs_inode_info *vip) | |||
296 | } | 296 | } |
297 | 297 | ||
298 | /** | 298 | /** |
299 | * vxfs_put_fake_inode - free faked inode | ||
300 | * *ip: VFS inode | ||
301 | * | ||
302 | * Description: | ||
303 | * vxfs_put_fake_inode frees all data associated with @ip. | ||
304 | */ | ||
305 | void | ||
306 | vxfs_put_fake_inode(struct inode *ip) | ||
307 | { | ||
308 | iput(ip); | ||
309 | } | ||
310 | |||
311 | /** | ||
312 | * vxfs_iget - get an inode | 299 | * vxfs_iget - get an inode |
313 | * @sbp: the superblock to get the inode for | 300 | * @sbp: the superblock to get the inode for |
314 | * @ino: the number of the inode to get | 301 | * @ino: the number of the inode to get |
diff --git a/fs/freevxfs/vxfs_super.c b/fs/freevxfs/vxfs_super.c index 6124091b4fdb..daf58a9fae70 100644 --- a/fs/freevxfs/vxfs_super.c +++ b/fs/freevxfs/vxfs_super.c | |||
@@ -79,9 +79,9 @@ vxfs_put_super(struct super_block *sbp) | |||
79 | { | 79 | { |
80 | struct vxfs_sb_info *infp = VXFS_SBI(sbp); | 80 | struct vxfs_sb_info *infp = VXFS_SBI(sbp); |
81 | 81 | ||
82 | vxfs_put_fake_inode(infp->vsi_fship); | 82 | iput(infp->vsi_fship); |
83 | vxfs_put_fake_inode(infp->vsi_ilist); | 83 | iput(infp->vsi_ilist); |
84 | vxfs_put_fake_inode(infp->vsi_stilist); | 84 | iput(infp->vsi_stilist); |
85 | 85 | ||
86 | brelse(infp->vsi_bp); | 86 | brelse(infp->vsi_bp); |
87 | kfree(infp); | 87 | kfree(infp); |
@@ -278,9 +278,9 @@ static int vxfs_fill_super(struct super_block *sbp, void *dp, int silent) | |||
278 | return 0; | 278 | return 0; |
279 | 279 | ||
280 | out_free_ilist: | 280 | out_free_ilist: |
281 | vxfs_put_fake_inode(infp->vsi_fship); | 281 | iput(infp->vsi_fship); |
282 | vxfs_put_fake_inode(infp->vsi_ilist); | 282 | iput(infp->vsi_ilist); |
283 | vxfs_put_fake_inode(infp->vsi_stilist); | 283 | iput(infp->vsi_stilist); |
284 | out: | 284 | out: |
285 | brelse(infp->vsi_bp); | 285 | brelse(infp->vsi_bp); |
286 | kfree(infp); | 286 | kfree(infp); |