OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7732b0
)
logfs: remove unnecessary nlink setting
author
Miklos Szeredi
<mszeredi@suse.cz>
Fri, 28 Oct 2011 12:13:27 +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: Joern Engel <joern@logfs.org>
CC: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/logfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/logfs/inode.c
b/fs/logfs/inode.c
index
edfea7a
..
9abb048
100644
(file)
--- a/
fs/logfs/inode.c
+++ b/
fs/logfs/inode.c
@@
-199,7
+199,6
@@
static void logfs_init_inode(struct super_block *sb, struct inode *inode)
inode->i_blocks = 0;
inode->i_ctime = CURRENT_TIME;
inode->i_mtime = CURRENT_TIME;
- inode->i_nlink = 1;
li->li_refcount = 1;
INIT_LIST_HEAD(&li->li_freeing_list);