This check is odd, as set_page_dirty is an address_space operation, and I don't see where it would be called on a non-pagecache page. Reported-by: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> --- fs/ceph/addr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index b47303b3772a..01316cb1314c 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -84,9 +84,6 @@ static int ceph_set_page_dirty(struct page *page) struct ceph_snap_context *snapc; int ret; - if (unlikely(!mapping)) - return !TestSetPageDirty(page); - if (PageDirty(page)) { dout("%p set_page_dirty %p idx %lu -- already dirty\n", mapping->host, page, page->index); -- 2.31.1