Commit 24797535 authored by Prasad Joshi's avatar Prasad Joshi Committed by Joern Engel

logfs: initialize li->li_refcount

li_refcount was not re-initialized in function logfs_init_inode(), small
patch that will fix the problem
Signed-off-by: default avatarPrasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent 05ebad85
...@@ -193,6 +193,7 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode) ...@@ -193,6 +193,7 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode)
inode->i_ctime = CURRENT_TIME; inode->i_ctime = CURRENT_TIME;
inode->i_mtime = CURRENT_TIME; inode->i_mtime = CURRENT_TIME;
inode->i_nlink = 1; inode->i_nlink = 1;
li->li_refcount = 1;
INIT_LIST_HEAD(&li->li_freeing_list); INIT_LIST_HEAD(&li->li_freeing_list);
for (i = 0; i < LOGFS_EMBEDDED_FIELDS; i++) for (i = 0; i < LOGFS_EMBEDDED_FIELDS; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment