From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,xiubli@redhat.com,willy@infradead.org,Slava.Dubeyko@ibm.com,ira.weiny@intel.com,idryomov@gmail.com,hch@lst.de,axboe@kernel.dk,amarkuze@redhat.com,dan.carpenter@linaro.org,akpm@linux-foundation.org
Subject: [folded-merged] ceph-convert-ceph_zero_partial_page-to-use-a-folio-fix.patch removed from -mm tree
Date: Wed, 09 Jul 2025 21:40:29 -0700 [thread overview]
Message-ID: <20250710044029.D022AC4CEE3@smtp.kernel.org> (raw)
The quilt patch titled
Subject: ceph: fix NULL vs IS_ERR() bug in ceph_zero_partial_page()
has been removed from the -mm tree. Its filename was
ceph-convert-ceph_zero_partial_page-to-use-a-folio-fix.patch
This patch was dropped because it was folded into ceph-convert-ceph_zero_partial_page-to-use-a-folio.patch
------------------------------------------------------
From: Dan Carpenter <dan.carpenter@linaro.org>
Subject: ceph: fix NULL vs IS_ERR() bug in ceph_zero_partial_page()
Date: Wed, 25 Jun 2025 10:22:11 -0500
The filemap_lock_folio() never returns NULL. It returns error pointers.
Update the checking to match.
Link: https://lkml.kernel.org/r/685c1424.050a0220.baa8.d6a1@mx.google.com
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ilya Dryomov <idryomov@gmail.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: Xiubo Li <xiubli@redhat.com>
Cc: Alex Markuze <amarkuze@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ceph/file.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
--- a/fs/ceph/file.c~ceph-convert-ceph_zero_partial_page-to-use-a-folio-fix
+++ a/fs/ceph/file.c
@@ -2536,12 +2536,13 @@ static inline void ceph_zero_partial_pag
struct folio *folio;
folio = filemap_lock_folio(inode->i_mapping, offset >> PAGE_SHIFT);
- if (folio) {
- folio_wait_writeback(folio);
- folio_zero_range(folio, offset_in_folio(folio, offset), size);
- folio_unlock(folio);
- folio_put(folio);
- }
+ if (IS_ERR(folio))
+ return;
+
+ folio_wait_writeback(folio);
+ folio_zero_range(folio, offset_in_folio(folio, offset), size);
+ folio_unlock(folio);
+ folio_put(folio);
}
static void ceph_zero_pagecache_range(struct inode *inode, loff_t offset,
_
Patches currently in -mm which might be from dan.carpenter@linaro.org are
ceph-convert-ceph_zero_partial_page-to-use-a-folio.patch
mmmemory_hotplug-implement-numa-node-notifier-fix.patch
reply other threads:[~2025-07-10 4:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250710044029.D022AC4CEE3@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=Slava.Dubeyko@ibm.com \
--cc=amarkuze@redhat.com \
--cc=axboe@kernel.dk \
--cc=dan.carpenter@linaro.org \
--cc=hch@lst.de \
--cc=idryomov@gmail.com \
--cc=ira.weiny@intel.com \
--cc=mm-commits@vger.kernel.org \
--cc=willy@infradead.org \
--cc=xiubli@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.