projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf7e90
)
f2fs: add missing dput() when printing the donation list
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 2 Oct 2025 01:55:32 +0000
(
01:55
+0000)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 3 Oct 2025 03:16:10 +0000
(
03:16
+0000)
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>
fs/f2fs/sysfs.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/sysfs.c
b/fs/f2fs/sysfs.c
index
7992386
..
6d2a4fb
100644
(file)
--- 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);
}