[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1319804012-16346-8-git-send-email-miklos@szeredi.hu>
Date: Fri, 28 Oct 2011 14:13:26 +0200
From: Miklos Szeredi <miklos@...redi.hu>
To: hch@...radead.org
Cc: viro@...IV.linux.org.uk, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, jack@...e.cz,
akpm@...ux-foundation.org, toshi.okajima@...fujitsu.com,
mszeredi@...e.cz, Joel Becker <jlbec@...lplan.org>,
Mark Fasheh <mfasheh@...e.com>
Subject: [PATCH 07/13] ocfs2: remove unnecessary nlink setting
From: Miklos Szeredi <mszeredi@...e.cz>
alloc_inode() initializes i_nlink to 1. Remove unnecessary
re-initialization.
Signed-off-by: Miklos Szeredi <mszeredi@...e.cz>
CC: Joel Becker <jlbec@...lplan.org>
CC: Mark Fasheh <mfasheh@...e.com>
---
fs/ocfs2/namei.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 53aa41e..0181f63 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -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;
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists