Skip to content

Commit

Permalink
logfs: initialize li->li_refcount
Browse files Browse the repository at this point in the history
li_refcount was not re-initialized in function logfs_init_inode(), small
patch that will fix the problem

Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: Joern Engel <joern@logfs.org>
  • Loading branch information
Prasad Joshi authored and Joern Engel committed May 4, 2010
1 parent 05ebad8 commit 2479753
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/logfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode)
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);

for (i = 0; i < LOGFS_EMBEDDED_FIELDS; i++)
Expand Down

0 comments on commit 2479753

Please sign in to comment.