aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-10-28 08:13:27 -0400
committerChristoph Hellwig <hch@serles.lst.de>2011-11-02 07:53:42 -0400
commitdd2a981f46a0903a8770a784f213d4d40bbb6f19 (patch)
tree97429f247dda72ee6985ef1b74c377fd48c99cba /fs/logfs
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>
Diffstat (limited to 'fs/logfs')
-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)
199 inode->i_blocks = 0; 199 inode->i_blocks = 0;
200 inode->i_ctime = CURRENT_TIME; 200 inode->i_ctime = CURRENT_TIME;
201 inode->i_mtime = CURRENT_TIME; 201 inode->i_mtime = CURRENT_TIME;
202 inode->i_nlink = 1;
203 li->li_refcount = 1; 202 li->li_refcount = 1;
204 INIT_LIST_HEAD(&li->li_freeing_list); 203 INIT_LIST_HEAD(&li->li_freeing_list);
205 204