From: Miklos Szeredi Date: Fri, 28 Oct 2011 12:13:25 +0000 (+0200) Subject: jfs: remove unnecessary nlink setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c818b682c955aa4d13212512deb529cb8bd1348b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git jfs: remove unnecessary nlink setting alloc_inode() initializes i_nlink to 1. Remove unnecessary re-initialization. Signed-off-by: Miklos Szeredi Acked-by: Dave Kleikamp Signed-off-by: Christoph Hellwig --- diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 06c8a67cbe7..a44eff076c1 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c @@ -485,7 +485,6 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent) goto out_unload; } inode->i_ino = 0; - inode->i_nlink = 1; inode->i_size = sb->s_bdev->bd_inode->i_size; inode->i_mapping->a_ops = &jfs_metapage_aops; insert_inode_hash(inode);