fs-allocate-inode-by-using-alloc_inode_sb.patch removed from -mm tree
The patch titled
Subject: fs: allocate inode by using alloc_inode_sb()
has been removed from the -mm tree. Its filename was
fs-allocate-inode-by-using-alloc_inode_sb.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Muchun Song <[email protected]>
Subject: fs: allocate inode by using alloc_inode_sb()
The inode allocation is supposed to use alloc_inode_sb(), so convert kmem_cache_alloc() of all filesystems to alloc_inode_sb().
Signed-off-by Muchun Song <[email protected]>
Acked-by Roman Gushchin <[email protected]>
Cc Alex Shi <[email protected]>
Cc Anna Schumaker <[email protected]>
Cc Chao Yu <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Fam Zheng <[email protected]>
Cc Jaegeuk Kim <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kari Argillander <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Qi Zheng <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Trond Myklebust <[email protected]>
Cc Vladimir Davydov <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Wei Yang <[email protected]>
Cc Xiongchun Duan <[email protected]>
Cc Yang Shi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
block/bdev.c | 2 +- drivers/dax/super.c | 2 +- fs/9p/vfs_inode.c | 2 +- fs/adfs/super.c | 2 +- fs/affs/super.c | 2 +- fs/afs/super.c | 2 +- fs/befs/linuxvfs.c | 2 +- fs/bfs/inode.c | 2 +- fs/btrfs/inode.c | 2 +- fs/ceph/inode.c | 2 +- fs/cifs/cifsfs.c | 2 +- fs/coda/inode.c | 2 +- fs/ecryptfs/super.c | 2 +- fs/efs/super.c | 2 +- fs/erofs/super.c | 2 +- fs/exfat/super.c | 2 +- fs/ext2/super.c | 2 +- fs/ext4/super.c | 2 +- fs/fat/inode.c | 2 +- fs/freevxfs/vxfs_super.c | 2 +- fs/fuse/inode.c | 2 +- fs/gfs2/super.c | 2 +- fs/hfs/super.c | 2 +- fs/hfsplus/super.c | 2 +- fs/hostfs/hostfs_kern.c | 2 +- fs/hpfs/super.c | 2 +- fs/hugetlbfs/inode.c | 2 +- fs/isofs/inode.c | 2 +- fs/jffs2/super.c | 2 +- fs/jfs/super.c | 2 +- fs/minix/inode.c | 2 +- fs/nfs/inode.c | 2 +- fs/nilfs2/super.c | 2 +- fs/ntfs/inode.c | 2 +- fs/ntfs3/super.c | 2 +- fs/ocfs2/dlmfs/dlmfs.c | 2 +- fs/ocfs2/super.c | 2 +- fs/openpromfs/inode.c | 2 +- fs/orangefs/super.c | 2 +- fs/overlayfs/super.c | 2 +- fs/proc/inode.c | 2 +- fs/qnx4/inode.c | 2 +- fs/qnx6/inode.c | 2 +- fs/reiserfs/super.c | 2 +- fs/romfs/super.c | 2 +- fs/squashfs/super.c | 2 +- fs/sysv/inode.c | 2 +- fs/ubifs/super.c | 2 +- fs/udf/super.c | 2 +- fs/ufs/super.c | 2 +- fs/vboxsf/super.c | 2 +- fs/xfs/xfs_icache.c | 2 +- fs/zonefs/super.c | 2 +- ipc/mqueue.c | 2 +- mm/shmem.c | 2 +- net/socket.c | 2 +- net/sunrpc/rpc_pipe.c | 2 +- 57 files changed, 57 insertions(+), 57 deletions(-)
block/bdev.c renamed from block/bdev.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -385,7 +385,7 @@ static struct kmem_cache * bdev_cachep _static struct inode *bdev_alloc_inode (struct super_block *sb) { -struct bdev_inode *ei =kmem_cache_alloc (bdev_cachep,GFP_KERNEL ); +struct bdev_inode *ei =alloc_inode_sb (sb, bdev_cachep,GFP_KERNEL );if (!ei)return NULL ;
drivers/dax/super.c renamed from drivers/dax/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -282,7 +282,7 @@ static struct inode *dax_alloc_inode(strstruct dax_device *dax_dev;struct inode *inode; - dax_dev =kmem_cache_alloc (dax_cache,GFP_KERNEL ); + dax_dev =alloc_inode_sb (sb, dax_cache,GFP_KERNEL );if (!dax_dev)return NULL ;
fs/9p/vfs_inode.c renamed from fs/9p/vfs_inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -228,7 +228,7 @@ struct inode *v9fs_alloc_inode(struct su {struct v9fs_inode *v9inode; - v9inode =kmem_cache_alloc (v9fs_inode_cache,GFP_KERNEL ); + v9inode =alloc_inode_sb (sb, v9fs_inode_cache,GFP_KERNEL );if (!v9inode)return NULL ;#ifdef CONFIG_9P_FSCACHE
fs/adfs/super.c renamed from fs/adfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -220,7 +220,7 @@ static struct kmem_cache *adfs_inode_cacstatic struct inode *adfs_alloc_inode (struct super_block *sb) {struct adfs_inode_info *ei; - ei =kmem_cache_alloc (adfs_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, adfs_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
fs/affs/super.c renamed from fs/affs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -100,7 +100,7 @@ static struct inode *affs_alloc_inode(st {struct affs_inode_info *i; - i =kmem_cache_alloc (affs_inode_cachep,GFP_KERNEL ); + i =alloc_inode_sb (sb, affs_inode_cachep,GFP_KERNEL );if (!i)return NULL ;
fs/afs/super.c renamed from fs/afs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -679,7 +679,7 @@ static struct inode *afs_alloc_inode(str {struct afs_vnode *vnode; - vnode =kmem_cache_alloc (afs_inode_cachep,GFP_KERNEL ); + vnode =alloc_inode_sb (sb, afs_inode_cachep,GFP_KERNEL );if (!vnode)return NULL ;
fs/befs/linuxvfs.c renamed from fs/befs/linuxvfs.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -277,7 +277,7 @@ befs_alloc_inode(struct super_block *sb) {struct befs_inode_info *bi; - bi =kmem_cache_alloc (befs_inode_cachep,GFP_KERNEL ); + bi =alloc_inode_sb (sb, befs_inode_cachep,GFP_KERNEL );if (!bi)return NULL ;return &bi->vfs_inode;
fs/bfs/inode.c renamed from fs/bfs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -239,7 +239,7 @@ static struct kmem_cache *bfs_inode_cachstatic struct inode *bfs_alloc_inode (struct super_block *sb) {struct bfs_inode_info *bi; - bi =kmem_cache_alloc (bfs_inode_cachep,GFP_KERNEL ); + bi =alloc_inode_sb (sb, bfs_inode_cachep,GFP_KERNEL );if (!bi)return NULL ;return &bi->vfs_inode;
fs/btrfs/inode.c renamed from fs/btrfs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -8787,7 +8787,7 @@ struct inode *btrfs_alloc_inode(struct sstruct btrfs_inode *ei;struct inode *inode; - ei =kmem_cache_alloc (btrfs_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, btrfs_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;
fs/ceph/inode.c renamed from fs/ceph/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -447,7 +447,7 @@ struct inode *ceph_alloc_inode(struct sustruct ceph_inode_info *ci;int i; - ci =kmem_cache_alloc (ceph_inode_cachep,GFP_NOFS ); + ci =alloc_inode_sb (sb, ceph_inode_cachep,GFP_NOFS );if (!ci)return NULL ;
fs/cifs/cifsfs.c renamed from fs/cifs/cifsfs.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -354,7 +354,7 @@ static struct inode * cifs_alloc_inode(struct super_block *sb) {struct cifsInodeInfo *cifs_inode; - cifs_inode =kmem_cache_alloc (cifs_inode_cachep,GFP_KERNEL ); + cifs_inode =alloc_inode_sb (sb, cifs_inode_cachep,GFP_KERNEL );if (!cifs_inode)return NULL ; cifs_inode->cifsAttrs =0x20 ;/* default */
fs/coda/inode.c renamed from fs/coda/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -43,7 +43,7 @@ static struct kmem_cache * coda_inode_castatic struct inode *coda_alloc_inode (struct super_block *sb) {struct coda_inode_info *ei; - ei =kmem_cache_alloc (coda_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, coda_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;memset (&ei->c_fid,0 ,sizeof (struct CodaFid ));
fs/ecryptfs/super.c renamed from fs/ecryptfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -38,7 +38,7 @@ static struct inode *ecryptfs_alloc_inodstruct ecryptfs_inode_info *inode_info;struct inode *inode =NULL ; - inode_info =kmem_cache_alloc (ecryptfs_inode_info_cache,GFP_KERNEL ); + inode_info =alloc_inode_sb (sb, ecryptfs_inode_info_cache,GFP_KERNEL );if (unlikely (!inode_info)) goto out;if (ecryptfs_init_crypt_stat (&inode_info->crypt_stat)) {
fs/efs/super.c renamed from fs/efs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -69,7 +69,7 @@ static struct kmem_cache * efs_inode_cacstatic struct inode *efs_alloc_inode (struct super_block *sb) {struct efs_inode_info *ei; - ei =kmem_cache_alloc (efs_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, efs_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
fs/erofs/super.c renamed from fs/erofs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -84,7 +84,7 @@ static void erofs_inode_init_once(void *static struct inode *erofs_alloc_inode (struct super_block *sb) {struct erofs_inode *vi = -kmem_cache_alloc (erofs_inode_cachep,GFP_KERNEL ); +alloc_inode_sb (sb, erofs_inode_cachep,GFP_KERNEL );if (!vi)return NULL ;
fs/exfat/super.c renamed from fs/exfat/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -183,7 +183,7 @@ static struct inode *exfat_alloc_inode(s {struct exfat_inode_info *ei; - ei =kmem_cache_alloc (exfat_inode_cachep,GFP_NOFS ); + ei =alloc_inode_sb (sb, exfat_inode_cachep,GFP_NOFS );if (!ei)return NULL ;
fs/ext2/super.c renamed from fs/ext2/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -180,7 +180,7 @@ static struct kmem_cache * ext2_inode_castatic struct inode *ext2_alloc_inode (struct super_block *sb) {struct ext2_inode_info *ei; - ei =kmem_cache_alloc (ext2_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, ext2_inode_cachep,GFP_KERNEL );if (!ei)return NULL ; ei->i_block_alloc_info =NULL ;
fs/ext4/super.c renamed from fs/ext4/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -1316,7 +1316,7 @@ static struct inode *ext4_alloc_inode(st {struct ext4_inode_info *ei; - ei =kmem_cache_alloc (ext4_inode_cachep,GFP_NOFS ); + ei =alloc_inode_sb (sb, ext4_inode_cachep,GFP_NOFS );if (!ei)return NULL ;
fs/fat/inode.c renamed from fs/fat/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -745,7 +745,7 @@ static struct kmem_cache *fat_inode_cachstatic struct inode *fat_alloc_inode (struct super_block *sb) {struct msdos_inode_info *ei; - ei =kmem_cache_alloc (fat_inode_cachep,GFP_NOFS ); + ei =alloc_inode_sb (sb, fat_inode_cachep,GFP_NOFS );if (!ei)return NULL ;
fs/freevxfs/vxfs_super.c renamed from fs/freevxfs/vxfs_super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -124,7 +124,7 @@ static struct inode *vxfs_alloc_inode(st {struct vxfs_inode_info *vi; - vi =kmem_cache_alloc (vxfs_inode_cachep,GFP_KERNEL ); + vi =alloc_inode_sb (sb, vxfs_inode_cachep,GFP_KERNEL );if (!vi)return NULL ;inode_init_once (&vi->vfs_inode);
fs/fuse/inode.c renamed from fs/fuse/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -72,7 +72,7 @@ static struct inode *fuse_alloc_inode(st {struct fuse_inode *fi; - fi =kmem_cache_alloc (fuse_inode_cachep,GFP_KERNEL ); + fi =alloc_inode_sb (sb, fuse_inode_cachep,GFP_KERNEL );if (!fi)return NULL ;
fs/gfs2/super.c renamed from fs/gfs2/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -1425,7 +1425,7 @@ static struct inode *gfs2_alloc_inode(st {struct gfs2_inode *ip; - ip =kmem_cache_alloc (gfs2_inode_cachep,GFP_KERNEL ); + ip =alloc_inode_sb (sb, gfs2_inode_cachep,GFP_KERNEL );if (!ip)return NULL ; ip->i_flags =0 ;
fs/hfsplus/super.c renamed from fs/hfsplus/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -624,7 +624,7 @@ static struct inode *hfsplus_alloc_inode {struct hfsplus_inode_info *i; - i =kmem_cache_alloc (hfsplus_inode_cachep,GFP_KERNEL ); + i =alloc_inode_sb (sb, hfsplus_inode_cachep,GFP_KERNEL );return i ? &i->vfs_inode :NULL ; }
fs/hfs/super.c renamed from fs/hfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -162,7 +162,7 @@ static struct inode *hfs_alloc_inode(str {struct hfs_inode_info *i; - i =kmem_cache_alloc (hfs_inode_cachep,GFP_KERNEL ); + i =alloc_inode_sb (sb, hfs_inode_cachep,GFP_KERNEL );return i ? &i->vfs_inode :NULL ; }
fs/hostfs/hostfs_kern.c renamed from fs/hostfs/hostfs_kern.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -222,7 +222,7 @@ static struct inode *hostfs_alloc_inode( {struct hostfs_inode_info *hi; - hi =kmem_cache_alloc (hostfs_inode_cache,GFP_KERNEL_ACCOUNT ); + hi =alloc_inode_sb (sb, hostfs_inode_cache,GFP_KERNEL_ACCOUNT );if (hi ==NULL )return NULL ; hi->fd =-1 ;
fs/hpfs/super.c renamed from fs/hpfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -232,7 +232,7 @@ static struct kmem_cache * hpfs_inode_castatic struct inode *hpfs_alloc_inode (struct super_block *sb) {struct hpfs_inode_info *ei; - ei =kmem_cache_alloc (hpfs_inode_cachep,GFP_NOFS ); + ei =alloc_inode_sb (sb, hpfs_inode_cachep,GFP_NOFS );if (!ei)return NULL ;return &ei->vfs_inode;
fs/hugetlbfs/inode.c renamed from fs/hugetlbfs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -1110,7 +1110,7 @@ static struct inode *hugetlbfs_alloc_inoif (unlikely (!hugetlbfs_dec_free_inodes (sbinfo)))return NULL ; - p =kmem_cache_alloc (hugetlbfs_inode_cachep,GFP_KERNEL ); + p =alloc_inode_sb (sb, hugetlbfs_inode_cachep,GFP_KERNEL );if (unlikely (!p)) {hugetlbfs_inc_free_inodes (sbinfo);return NULL ;
fs/isofs/inode.c renamed from fs/isofs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -70,7 +70,7 @@ static struct kmem_cache *isofs_inode_castatic struct inode *isofs_alloc_inode (struct super_block *sb) {struct iso_inode_info *ei; - ei =kmem_cache_alloc (isofs_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, isofs_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
fs/jffs2/super.c renamed from fs/jffs2/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -39,7 +39,7 @@ static struct inode *jffs2_alloc_inode(s {struct jffs2_inode_info *f; - f =kmem_cache_alloc (jffs2_inode_cachep,GFP_KERNEL ); + f =alloc_inode_sb (sb, jffs2_inode_cachep,GFP_KERNEL );if (!f)return NULL ;return &f->vfs_inode;
fs/jfs/super.c renamed from fs/jfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -102,7 +102,7 @@ static struct inode *jfs_alloc_inode(str {struct jfs_inode_info *jfs_inode; - jfs_inode =kmem_cache_alloc (jfs_inode_cachep,GFP_NOFS ); + jfs_inode =alloc_inode_sb (sb, jfs_inode_cachep,GFP_NOFS );if (!jfs_inode)return NULL ;#ifdef CONFIG_QUOTA
fs/minix/inode.c renamed from fs/minix/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -63,7 +63,7 @@ static struct kmem_cache * minix_inode_cstatic struct inode *minix_alloc_inode (struct super_block *sb) {struct minix_inode_info *ei; - ei =kmem_cache_alloc (minix_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, minix_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
fs/nfs/inode.c renamed from fs/nfs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -2238,7 +2238,7 @@ static int nfs_update_inode(struct inodestruct inode *nfs_alloc_inode (struct super_block *sb) {struct nfs_inode *nfsi; - nfsi =kmem_cache_alloc (nfs_inode_cachep,GFP_KERNEL ); + nfsi =alloc_inode_sb (sb, nfs_inode_cachep,GFP_KERNEL );if (!nfsi)return NULL ; nfsi->flags =0UL ;
fs/nilfs2/super.c renamed from fs/nilfs2/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -151,7 +151,7 @@ struct inode *nilfs_alloc_inode(struct s {struct nilfs_inode_info *ii; - ii =kmem_cache_alloc (nilfs_inode_cachep,GFP_NOFS ); + ii =alloc_inode_sb (sb, nilfs_inode_cachep,GFP_NOFS );if (!ii)return NULL ; ii->i_bh =NULL ;
fs/ntfs3/super.c renamed from fs/ntfs3/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -399,7 +399,7 @@ static struct kmem_cache *ntfs_inode_cacstatic struct inode *ntfs_alloc_inode (struct super_block *sb) { -struct ntfs_inode *ni =kmem_cache_alloc (ntfs_inode_cachep,GFP_NOFS ); +struct ntfs_inode *ni =alloc_inode_sb (sb, ntfs_inode_cachep,GFP_NOFS );if (!ni)return NULL ;
fs/ntfs/inode.c renamed from fs/ntfs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -310,7 +310,7 @@ struct inode *ntfs_alloc_big_inode(strucntfs_inode *ni;ntfs_debug ("Entering." ); - ni =kmem_cache_alloc (ntfs_big_inode_cache,GFP_NOFS ); + ni =alloc_inode_sb (sb, ntfs_big_inode_cache,GFP_NOFS );if (likely (ni !=NULL )) { ni->state =0 ;return VFS_I (ni);
fs/ocfs2/dlmfs/dlmfs.c renamed from fs/ocfs2/dlmfs/dlmfs.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -280,7 +280,7 @@ static struct inode *dlmfs_alloc_inode(s {struct dlmfs_inode_private *ip; - ip =kmem_cache_alloc (dlmfs_inode_cache,GFP_NOFS ); + ip =alloc_inode_sb (sb, dlmfs_inode_cache,GFP_NOFS );if (!ip)return NULL ;
fs/ocfs2/super.c renamed from fs/ocfs2/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -548,7 +548,7 @@ static struct inode *ocfs2_alloc_inode(s {struct ocfs2_inode_info *oi; - oi =kmem_cache_alloc (ocfs2_inode_cachep,GFP_NOFS ); + oi =alloc_inode_sb (sb, ocfs2_inode_cachep,GFP_NOFS );if (!oi)return NULL ;
fs/openpromfs/inode.c renamed from fs/openpromfs/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -335,7 +335,7 @@ static struct inode *openprom_alloc_inod {struct op_inode_info *oi; - oi =kmem_cache_alloc (op_inode_cachep,GFP_KERNEL ); + oi =alloc_inode_sb (sb, op_inode_cachep,GFP_KERNEL );if (!oi)return NULL ;
fs/orangefs/super.c renamed from fs/orangefs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -107,7 +107,7 @@ static struct inode *orangefs_alloc_inod {struct orangefs_inode_s *orangefs_inode; - orangefs_inode =kmem_cache_alloc (orangefs_inode_cache,GFP_KERNEL ); + orangefs_inode =alloc_inode_sb (sb, orangefs_inode_cache,GFP_KERNEL );if (!orangefs_inode)return NULL ;
fs/overlayfs/super.c renamed from fs/overlayfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -174,7 +174,7 @@ static struct kmem_cache *ovl_inode_cachstatic struct inode *ovl_alloc_inode (struct super_block *sb) { -struct ovl_inode *oi =kmem_cache_alloc (ovl_inode_cachep,GFP_KERNEL ); +struct ovl_inode *oi =alloc_inode_sb (sb, ovl_inode_cachep,GFP_KERNEL );if (!oi)return NULL ;
fs/proc/inode.c renamed from fs/proc/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -66,7 +66,7 @@ static struct inode *proc_alloc_inode(st {struct proc_inode *ei; - ei =kmem_cache_alloc (proc_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, proc_inode_cachep,GFP_KERNEL );if (!ei)return NULL ; ei->pid =NULL ;
fs/qnx4/inode.c renamed from fs/qnx4/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -338,7 +338,7 @@ static struct kmem_cache *qnx4_inode_cacstatic struct inode *qnx4_alloc_inode (struct super_block *sb) {struct qnx4_inode_info *ei; - ei =kmem_cache_alloc (qnx4_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, qnx4_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
fs/qnx6/inode.c renamed from fs/qnx6/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -597,7 +597,7 @@ static struct kmem_cache *qnx6_inode_cacstatic struct inode *qnx6_alloc_inode (struct super_block *sb) {struct qnx6_inode_info *ei; - ei =kmem_cache_alloc (qnx6_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, qnx6_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
fs/reiserfs/super.c renamed from fs/reiserfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -639,7 +639,7 @@ static struct kmem_cache *reiserfs_inodestatic struct inode *reiserfs_alloc_inode (struct super_block *sb) {struct reiserfs_inode_info *ei; - ei =kmem_cache_alloc (reiserfs_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, reiserfs_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;atomic_set (&ei->openers,0 );
fs/romfs/super.c renamed from fs/romfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -375,7 +375,7 @@ static struct inode *romfs_alloc_inode(s {struct romfs_inode_info *inode; - inode =kmem_cache_alloc (romfs_inode_cachep,GFP_KERNEL ); + inode =alloc_inode_sb (sb, romfs_inode_cachep,GFP_KERNEL );return inode ? &inode->vfs_inode :NULL ; }
fs/squashfs/super.c renamed from fs/squashfs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -584,7 +584,7 @@ static void __exit exit_squashfs_fs(voidstatic struct inode *squashfs_alloc_inode (struct super_block *sb) {struct squashfs_inode_info *ei = -kmem_cache_alloc (squashfs_inode_cachep,GFP_KERNEL ); +alloc_inode_sb (sb, squashfs_inode_cachep,GFP_KERNEL );return ei ? &ei->vfs_inode :NULL ; }
fs/sysv/inode.c renamed from fs/sysv/inode.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -306,7 +306,7 @@ static struct inode *sysv_alloc_inode(st {struct sysv_inode_info *si; - si =kmem_cache_alloc (sysv_inode_cachep,GFP_KERNEL ); + si =alloc_inode_sb (sb, sysv_inode_cachep,GFP_KERNEL );if (!si)return NULL ;return &si->vfs_inode;
fs/ubifs/super.c renamed from fs/ubifs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -268,7 +268,7 @@ static struct inode *ubifs_alloc_inode(s {struct ubifs_inode *ui; - ui =kmem_cache_alloc (ubifs_inode_slab,GFP_NOFS ); + ui =alloc_inode_sb (sb, ubifs_inode_slab,GFP_NOFS );if (!ui)return NULL ;
fs/udf/super.c renamed from fs/udf/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -136,7 +136,7 @@ static struct kmem_cache *udf_inode_cachstatic struct inode *udf_alloc_inode (struct super_block *sb) {struct udf_inode_info *ei; - ei =kmem_cache_alloc (udf_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, udf_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;
fs/ufs/super.c renamed from fs/ufs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -1443,7 +1443,7 @@ static struct inode *ufs_alloc_inode(str {struct ufs_inode_info *ei; - ei =kmem_cache_alloc (ufs_inode_cachep,GFP_NOFS ); + ei =alloc_inode_sb (sb, ufs_inode_cachep,GFP_NOFS );if (!ei)return NULL ;
fs/vboxsf/super.c renamed from fs/vboxsf/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -241,7 +241,7 @@ static struct inode *vboxsf_alloc_inode( {struct vboxsf_inode *sf_i; - sf_i =kmem_cache_alloc (vboxsf_inode_cachep,GFP_NOFS ); + sf_i =alloc_inode_sb (sb, vboxsf_inode_cachep,GFP_NOFS );if (!sf_i)return NULL ;
fs/xfs/xfs_icache.c renamed from fs/xfs/xfs_icache.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -77,7 +77,7 @@ xfs_inode_alloc(* XXX: If this didn't occur in transactions, we could drop GFP_NOFAIL * and return NULL here on ENOMEM. */ - ip =kmem_cache_alloc (xfs_inode_cache,GFP_KERNEL | __GFP_NOFAIL); + ip =alloc_inode_sb (mp->m_super, xfs_inode_cache,GFP_KERNEL | __GFP_NOFAIL);if (inode_init_always (mp->m_super,VFS_I (ip))) {kmem_cache_free (xfs_inode_cache, ip);
fs/zonefs/super.c renamed from fs/zonefs/super.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -1137,7 +1137,7 @@ static struct inode *zonefs_alloc_inode( {struct zonefs_inode_info *zi; - zi =kmem_cache_alloc (zonefs_inode_cachep,GFP_KERNEL ); + zi =alloc_inode_sb (sb, zonefs_inode_cachep,GFP_KERNEL );if (!zi)return NULL ;
ipc/mqueue.c renamed from ipc/mqueue.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -486,7 +486,7 @@ static struct inode *mqueue_alloc_inode( {struct mqueue_inode_info *ei; - ei =kmem_cache_alloc (mqueue_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, mqueue_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;return &ei->vfs_inode;
mm/shmem.c renamed from mm/shmem.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -3708,7 +3708,7 @@ static struct kmem_cache *shmem_inode_castatic struct inode *shmem_alloc_inode (struct super_block *sb) {struct shmem_inode_info *info; - info =kmem_cache_alloc (shmem_inode_cachep,GFP_KERNEL ); + info =alloc_inode_sb (sb, shmem_inode_cachep,GFP_KERNEL );if (!info)return NULL ;return &info->vfs_inode;
net/socket.c renamed from net/socket.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -301,7 +301,7 @@ static struct inode *sock_alloc_inode(st {struct socket_alloc *ei; - ei =kmem_cache_alloc (sock_inode_cachep,GFP_KERNEL ); + ei =alloc_inode_sb (sb, sock_inode_cachep,GFP_KERNEL );if (!ei)return NULL ;init_waitqueue_head (&ei->socket.wq.wait);
net/sunrpc/rpc_pipe.c renamed from net/sunrpc/rpc_pipe.c~fs-allocate-inode-by-using-alloc_inode_sb +1 -1
@@ -197,7 +197,7 @@ static struct inode * rpc_alloc_inode(struct super_block *sb) {struct rpc_inode *rpci; - rpci =kmem_cache_alloc (rpc_inode_cachep,GFP_KERNEL ); + rpci =alloc_inode_sb (sb, rpc_inode_cachep,GFP_KERNEL );if (!rpci)return NULL ;return &rpci->vfs_inode;
_
Patches currently in -mm which might be from [email protected] are