Commit 4e715744 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: add missing dput() when printing the donation list



We missed to call dput() on the grabbed dentry.

Fixes: f1a49c1b ("f2fs: show the list of donation files")
Reviewed-by: default avatarDaeho Jeong <daehojeong@google.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent edf7e904
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}