projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2833eb2
)
hypfs: remove unnecessary nlink setting
author
Miklos Szeredi
<mszeredi@suse.cz>
Fri, 28 Oct 2011 12:13:24 +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: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/s390/hypfs/inode.c
patch
|
blob
|
history
diff --git
a/arch/s390/hypfs/inode.c
b/arch/s390/hypfs/inode.c
index
6fe874f
..
7ae0d0d
100644
(file)
--- a/
arch/s390/hypfs/inode.c
+++ b/
arch/s390/hypfs/inode.c
@@
-109,8
+109,6
@@
static struct inode *hypfs_make_inode(struct super_block *sb, int mode)
ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME;
if (mode & S_IFDIR)
ret->i_nlink = 2;
- else
- ret->i_nlink = 1;
}
return ret;
}