lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260116043203.2313943-1-jaegeuk@kernel.org>
Date: Fri, 16 Jan 2026 04:32:02 +0000
From: Jaegeuk Kim <jaegeuk@...nel.org>
To: linux-kernel@...r.kernel.org,
	linux-f2fs-devel@...ts.sourceforge.net
Cc: Jaegeuk Kim <jaegeuk@...nel.org>,
	"Matthew Wilcox (Oracle)" <willy@...radead.org>
Subject: [PATCH] f2fs: use folio_end_read

No logic change.

Suggested-by: Matthew Wilcox (Oracle) <willy@...radead.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@...nel.org>
---
 fs/f2fs/data.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 4e2f10bd2b07..5b4832956196 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -2566,19 +2566,15 @@ static int f2fs_read_data_large_folio(struct inode *inode,
 	}
 	trace_f2fs_read_folio(folio, DATA);
 	if (rac) {
-		if (!folio_in_bio) {
-			folio_mark_uptodate(folio);
-			folio_unlock(folio);
-		}
+		if (!folio_in_bio)
+			folio_end_read(folio, true);
 		folio = readahead_folio(rac);
 		goto next_folio;
 	}
 err_out:
 	/* Nothing was submitted. */
 	if (!bio) {
-		if (!ret)
-			folio_mark_uptodate(folio);
-		folio_unlock(folio);
+		folio_end_read(folio, !ret);
 		return ret;
 	}
 
-- 
2.52.0.457.g6b5491de43-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ