Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7732b05 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Christoph Hellwig
Browse files

ocfs2: remove unnecessary nlink setting



alloc_inode() initializes i_nlink to 1.  Remove unnecessary
re-initialization.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
CC: Joel Becker <jlbec@evilplan.org>
CC: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent c818b682
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -200,8 +200,6 @@ static struct inode *ocfs2_get_init_inode(struct inode *dir, int mode)
	 * callers. */
	if (S_ISDIR(mode))
		inode->i_nlink = 2;
	else
		inode->i_nlink = 1;
	inode_init_owner(inode, dir, mode);
	dquot_initialize(inode);
	return inode;