projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c818b68
)
ocfs2: remove unnecessary nlink setting
author
Miklos Szeredi
<mszeredi@suse.cz>
Fri, 28 Oct 2011 12:13:26 +0000
(14:13 +0200)
committer
Christoph Hellwig
<hch@serles.lst.de>
Wed, 2 Nov 2011 11:53:42 +0000
(12:53 +0100)
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>
fs/ocfs2/namei.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/namei.c
b/fs/ocfs2/namei.c
index 53aa41ed7bf39d34d2ad9064813b3e6feeb57971..0181f63dd463ce4b4a463d7ea1fe6baae754b9a6 100644
(file)
--- 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;