Skip to content

Commit 4e71574

Browse files
author
Jaegeuk Kim
committed
f2fs: add missing dput() when printing the donation list
We missed to call dput() on the grabbed dentry. Fixes: f1a49c1 ("f2fs: show the list of donation files") Reviewed-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent edf7e90 commit 4e71574

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/f2fs/sysfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,7 @@ static int __maybe_unused donation_list_seq_show(struct seq_file *seq,
18451845
(loff_t)(fi->donate_end + 1) << (PAGE_SHIFT - 10),
18461846
(loff_t)inode->i_mapping->nrpages << (PAGE_SHIFT - 10));
18471847
next:
1848+
dput(dentry);
18481849
inode_unlock_shared(inode);
18491850
iput(inode);
18501851
}

0 commit comments

Comments
 (0)