From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9714BE9410B for ; Fri, 6 Oct 2023 19:19:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233413AbjJFTTd (ORCPT ); Fri, 6 Oct 2023 15:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbjJFTTa (ORCPT ); Fri, 6 Oct 2023 15:19:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686BA9E for ; Fri, 6 Oct 2023 12:19:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 834DEC433C7; Fri, 6 Oct 2023 19:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1696619963; bh=VEVk6kVqhwrrYtV3b5IlNSTnogmGwTKdqZxioR6tD+U=; h=Date:To:From:Subject:From; b=JWEA3C3LCumXxwl974rWfRiacSt+X//LVe6ZNlJnmEwB34Qt0lkR2/zPJsVFGcv8b oUJmFKqRSnmptWi7dKmCATuQXaGNQKAR18FO31+gmAYmgzr+bwvB9VA1uhJSZTK5eS hYVcydkRlSlNEvVA78EcGW+dmGQhb/6o1E+5AUw4= Date: Fri, 06 Oct 2023 12:19:20 -0700 To: mm-commits@vger.kernel.org, tytso@mit.edu, tsbogend@alpha.franken.de, svens@linux.ibm.com, richard.henderson@linaro.org, paul.walmsley@sifive.com, palmer@dabbelt.com, npiggin@gmail.com, mpe@ellerman.id.au, mattst88@gmail.com, ink@jurassic.park.msu.ru, hca@linux.ibm.com, gor@linux.ibm.com, geert@linux-m68k.org, christophe.leroy@csgroup.eu, borntraeger@linux.ibm.com, aou@eecs.berkeley.edu, agordeev@linux.ibm.com, adilger.kernel@dilger.ca, willy@infradead.org, akpm@linux-foundation.org From: Andrew Morton Subject: + iomap-use-folio_end_read.patch added to mm-unstable branch Message-Id: <20231006191922.834DEC433C7@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: iomap: use folio_end_read() has been added to the -mm mm-unstable branch. Its filename is iomap-use-folio_end_read.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/iomap-use-folio_end_read.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: "Matthew Wilcox (Oracle)" Subject: iomap: use folio_end_read() Date: Wed, 4 Oct 2023 17:53:06 +0100 Combine the setting of the uptodate flag with the clearing of the locked flag. Link: https://lkml.kernel.org/r/20231004165317.1061855-7-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) Cc: Albert Ou Cc: Alexander Gordeev Cc: Andreas Dilger Cc: Christian Borntraeger Cc: Christophe Leroy Cc: Geert Uytterhoeven Cc: Heiko Carstens Cc: Ivan Kokshaysky Cc: Matt Turner Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Palmer Dabbelt Cc: Paul Walmsley Cc: Richard Henderson Cc: Sven Schnelle Cc: "Theodore Ts'o" Cc: Thomas Bogendoerfer Cc: Vasily Gorbik Signed-off-by: Andrew Morton --- fs/iomap/buffered-io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/fs/iomap/buffered-io.c~iomap-use-folio_end_read +++ a/fs/iomap/buffered-io.c @@ -270,10 +270,8 @@ static void iomap_finish_folio_read(stru if (error) folio_set_error(folio); - if (uptodate) - folio_mark_uptodate(folio); if (finished) - folio_unlock(folio); + folio_end_read(folio, uptodate); } static void iomap_read_end_io(struct bio *bio) _ Patches currently in -mm which might be from willy@infradead.org are mm-make-lock_folio_maybe_drop_mmap-vma-lock-aware.patch mm-call-wp_page_copy-under-the-vma-lock.patch mm-handle-shared-faults-under-the-vma-lock.patch mm-handle-cow-faults-under-the-vma-lock.patch mm-handle-read-faults-under-the-vma-lock.patch mm-handle-write-faults-to-ro-pages-under-the-vma-lock.patch iomap-hold-state_lock-over-call-to-ifs_set_range_uptodate.patch iomap-protect-read_bytes_pending-with-the-state_lock.patch mm-add-folio_end_read.patch ext4-use-folio_end_read.patch buffer-use-folio_end_read.patch iomap-use-folio_end_read.patch bitops-add-xor_unlock_is_negative_byte.patch alpha-implement-xor_unlock_is_negative_byte.patch m68k-implement-xor_unlock_is_negative_byte.patch mips-implement-xor_unlock_is_negative_byte.patch powerpc-implement-arch_xor_unlock_is_negative_byte-on-32-bit.patch riscv-implement-xor_unlock_is_negative_byte.patch s390-implement-arch_xor_unlock_is_negative_byte.patch mm-delete-checks-for-xor_unlock_is_negative_byte.patch mm-add-folio_xor_flags_has_waiters.patch mm-make-__end_folio_writeback-return-void.patch mm-use-folio_xor_flags_has_waiters-in-folio_end_writeback.patch