Skip to content

Commit 2479753

Browse files
Prasad JoshiJoern Engel
authored andcommitted
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: Prasad Joshi <prasadjoshi124@gmail.com> Signed-off-by: Joern Engel <joern@logfs.org>
1 parent 05ebad8 commit 2479753

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/logfs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode)
193193
inode->i_ctime = CURRENT_TIME;
194194
inode->i_mtime = CURRENT_TIME;
195195
inode->i_nlink = 1;
196+
li->li_refcount = 1;
196197
INIT_LIST_HEAD(&li->li_freeing_list);
197198

198199
for (i = 0; i < LOGFS_EMBEDDED_FIELDS; i++)

0 commit comments

Comments
 (0)