Skip to content

Commit

Permalink
logfs: remove unnecessary nlink setting
Browse files Browse the repository at this point in the history
alloc_inode() initializes i_nlink to 1.  Remove unnecessary
re-initialization.

Signed-off-by: Miklos Szeredi <[email protected]>
CC: Joern Engel <[email protected]>
CC: Prasad Joshi <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Miklos Szeredi authored and Christoph Hellwig committed Nov 2, 2011
1 parent a7732b0 commit dd2a981
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/logfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dd2a981

Please sign in to comment.