All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ceph: remove useless page->mapping check in writepage_nounlock()
@ 2017-05-23  9:54 Yan, Zheng
  2017-05-23  9:54 ` [PATCH 2/3] ceph: redirty page when writepage_nounlock() skips unwritable page Yan, Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yan, Zheng @ 2017-05-23  9:54 UTC (permalink / raw)
  To: ceph-devel; +Cc: jlayton, dan.carpenter, Yan, Zheng

Callers of writepage_nounlock() have already ensured non-null
page->mapping.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
---
 fs/ceph/addr.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index f49d6630..ff25239 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -534,10 +534,6 @@ static int writepage_nounlock(struct page *page, struct writeback_control *wbc)
 
 	dout("writepage %p idx %lu\n", page, page->index);
 
-	if (!page->mapping || !page->mapping->host) {
-		dout("writepage %p - no mapping\n", page);
-		return -EFAULT;
-	}
 	inode = page->mapping->host;
 	ci = ceph_inode(inode);
 	fsc = ceph_inode_to_client(inode);
-- 
2.9.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-23 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-23  9:54 [PATCH 1/3] ceph: remove useless page->mapping check in writepage_nounlock() Yan, Zheng
2017-05-23  9:54 ` [PATCH 2/3] ceph: redirty page when writepage_nounlock() skips unwritable page Yan, Zheng
2017-05-23 10:33   ` Jeff Layton
2017-05-23  9:54 ` [PATCH 3/3] ceph: cleanup writepage_nounlock() Yan, Zheng
2017-05-23 10:36   ` Jeff Layton
2017-05-23 10:31 ` [PATCH 1/3] ceph: remove useless page->mapping check in writepage_nounlock() Jeff Layton

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.