VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Christoph Hellwig <hch@lst.de> 2010-10-23 11:19:54 -0400 committer: Al Viro <viro@zeniv.linux.org.uk> 2010-10-25 21:26:11 -0400 commit: 85fe4025c616a7c0ed07bc2fc8c5371b07f3888c parent: f991bd2e14210fb93d722cb23e54991de20e8a3d
Commit Summary:
fs: do not assign default i_ino in new_inode
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c
index 79d1b4ea13e7..8c04eac5079d 100644
--- a/fs/freevxfs/vxfs_inode.c
+++ b/fs/freevxfs/vxfs_inode.c
@@ -260,6 +260,7 @@ vxfs_get_fake_inode(struct super_block *sbp, struct vxfs_inode_info *vip)
 	struct inode			*ip = NULL;
 
 	if ((ip = new_inode(sbp))) {
+		ip->i_ino = get_next_ino();
 		vxfs_iinit(ip, vip);
 		ip->i_mapping->a_ops = &vxfs_aops;
 	}