summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-10-28 14:13:27 +0200
committerChristoph Hellwig <hch@serles.lst.de>2011-11-02 12:53:42 +0100
commitdd2a981f46a0903a8770a784f213d4d40bbb6f19 (patch)
tree97429f247dda72ee6985ef1b74c377fd48c99cba
parenta7732b05f775a5575baac34c03bb0e8d16950edf (diff)
logfs: remove unnecessary nlink setting
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>
-rw-r--r--fs/logfs/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c
index edfea7a3a747..9abb048b96c0 100644
--- 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);