projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/logfs/inode.c
b/fs/logfs/inode.c
index edfea7a3a747fa2c984a5817d82909fdccc7d0ea..9abb048b96c0a20a5b2a6a2fe7b42cb535482fad 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);