diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-10-28 14:13:26 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@serles.lst.de> | 2011-11-02 12:53:42 +0100 |
commit | a7732b05f775a5575baac34c03bb0e8d16950edf (patch) | |
tree | 9b0311f5004a98afbb46a65a57a665b13e613e23 /fs/ocfs2/namei.c | |
parent | c818b682c955aa4d13212512deb529cb8bd1348b (diff) | |
download | linux-a7732b05f775a5575baac34c03bb0e8d16950edf.tar.bz2 |
ocfs2: remove unnecessary nlink setting
alloc_inode() initializes i_nlink to 1. Remove unnecessary
re-initialization.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Joel Becker <jlbec@evilplan.org>
CC: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | 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 53aa41ed7bf3..0181f63dd463 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; |