logfs: remove unnecessary nlink setting
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 28 Oct 2011 12:13:27 +0000 (14:13 +0200)
committerChristoph 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

index edfea7a..9abb048 100644 (file)
@@ -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);