diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-10-02 01:55:32 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-10-03 03:16:10 +0000 |
| commit | 4e715744bf7b4e5521cc3b77f310060f862cb719 (patch) | |
| tree | 052565c5285a47f57648a1738cfd7593fa12fbeb | |
| parent | edf7e9040fc52c922db947f9c6c36f07377c52ea (diff) | |
f2fs: add missing dput() when printing the donation list
We missed to call dput() on the grabbed dentry.
Fixes: f1a49c1b112b ("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>
| -rw-r--r-- | fs/f2fs/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 7992386fb9e6..6d2a4fba68a2 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -1845,6 +1845,7 @@ static int __maybe_unused donation_list_seq_show(struct seq_file *seq, (loff_t)(fi->donate_end + 1) << (PAGE_SHIFT - 10), (loff_t)inode->i_mapping->nrpages << (PAGE_SHIFT - 10)); next: + dput(dentry); inode_unlock_shared(inode); iput(inode); } |
