]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
freevxfs: remove vxfs_put_fake_inode
authorKrzysztof Błaszkowski <kb@sysmikro.com.pl>
Wed, 1 Jun 2016 06:41:11 +0000 (08:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Jun 2016 07:01:30 +0000 (09:01 +0200)
Signed-off-by: Krzysztof Błaszkowski <kb@sysmikro.com.pl>
[hch: split from a larget patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/freevxfs/vxfs_extern.h
fs/freevxfs/vxfs_inode.c
fs/freevxfs/vxfs_super.c

index e3dcb4467d92752af6980549fb740f97d11d1f47..b59df797665f8569de908e12bbded0fac57496a5 100644 (file)
@@ -56,7 +56,6 @@ extern struct kmem_cache      *vxfs_inode_cachep;
 extern void                    vxfs_dumpi(struct vxfs_inode_info *, ino_t);
 extern struct inode *          vxfs_get_fake_inode(struct super_block *,
                                        struct vxfs_inode_info *);
-extern void                    vxfs_put_fake_inode(struct inode *);
 extern struct vxfs_inode_info *        vxfs_blkiget(struct super_block *, u_long, ino_t);
 extern struct vxfs_inode_info *        vxfs_stiget(struct super_block *, ino_t);
 extern struct inode *          vxfs_iget(struct super_block *, ino_t);
index 15de300a3ac6e6a05ea64b8e35642f1c25f41ab5..6087ca703f128e39d857a89d7dcf2217f7e86c34 100644 (file)
@@ -295,19 +295,6 @@ vxfs_get_fake_inode(struct super_block *sbp, struct vxfs_inode_info *vip)
        return (ip);
 }
 
-/**
- * vxfs_put_fake_inode - free faked inode
- * *ip:                        VFS inode
- *
- * Description:
- *  vxfs_put_fake_inode frees all data associated with @ip.
- */
-void
-vxfs_put_fake_inode(struct inode *ip)
-{
-       iput(ip);
-}
-
 /**
  * vxfs_iget - get an inode
  * @sbp:       the superblock to get the inode for
index 6124091b4fdb8f7ff3a9baad2a20a03caa3b4c54..daf58a9fae70b9c27a15aafcee493bf191937bd6 100644 (file)
@@ -79,9 +79,9 @@ vxfs_put_super(struct super_block *sbp)
 {
        struct vxfs_sb_info     *infp = VXFS_SBI(sbp);
 
-       vxfs_put_fake_inode(infp->vsi_fship);
-       vxfs_put_fake_inode(infp->vsi_ilist);
-       vxfs_put_fake_inode(infp->vsi_stilist);
+       iput(infp->vsi_fship);
+       iput(infp->vsi_ilist);
+       iput(infp->vsi_stilist);
 
        brelse(infp->vsi_bp);
        kfree(infp);
@@ -278,9 +278,9 @@ static int vxfs_fill_super(struct super_block *sbp, void *dp, int silent)
        return 0;
        
 out_free_ilist:
-       vxfs_put_fake_inode(infp->vsi_fship);
-       vxfs_put_fake_inode(infp->vsi_ilist);
-       vxfs_put_fake_inode(infp->vsi_stilist);
+       iput(infp->vsi_fship);
+       iput(infp->vsi_ilist);
+       iput(infp->vsi_stilist);
 out:
        brelse(infp->vsi_bp);
        kfree(infp);