Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2885729pxj; Mon, 14 Jun 2021 09:19:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwetJMsnYCRSS7LuTGZe9J2+IQJeElp8xIFPAynO6N5QWh3rFO/b+wBcKt8XCiydjeshFsJ X-Received: by 2002:a17:907:9047:: with SMTP id az7mr15765370ejc.4.1623687564306; Mon, 14 Jun 2021 09:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623687564; cv=none; d=google.com; s=arc-20160816; b=o0LjAvUh73Xb79ixF9kr/h3BrVz86s9x4JCgRyDQeTUuQpD+0UX3ikNzjFWNzHNjZF ZrCVIBRej4AGOYRSjxppyexreeTWAU//Q84HHkXAvUt5bxyA3WUNAjz9UMJ5UQ8XR96P hggcHINtf0agvacvo+Q5WE8Kd2Lyli3EEna80yEZrTtNgYHjgm8OLbXE7MAqUXet/4Zt idvnkJdbta4sdilhcucGAdqA/j6heusx31+Gnz8ysZ841HcggcWG/1/QR2MK1xmY/zCA 2B3HyaNAjIjnzsiTXMBv3/2bk2xcU6lO2wEzUvKkVFjWU7VKKhbIizv6UM2u1naXYRJp 6nkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5vWKwcu5zXbIS0gqk+gmRAwRmyT4qPUE/hpJYzofpcg=; b=fTnINd3DtczhxgHkbFxnK3WI5IDq3D+o2dl/utH/38tqxr/UCkoufRNqlZ06TeNBN/ 4rJyAje+ecMF3HKgqAv0myDHxzk1iwQW34q+y6uo3xx3RVGsMR3DOpedtGpcKHoBEFB5 G6UjWNwV/Y5aE8WwrFqsZDDRQMBpJ1SvdzfFqOzbT38M73wHVzGe1WsEiR2tdtMxTCtl XgtIMyJWu5rHffoYR/bDa0hOLxVEeTFO1+L9AbBvNdrDGkULC4VB9GDleTZtApDe4pzO W7oJoFf35syoYcV4w+7uygfgdV3X/OWYVWTfPYihXVmsHvHgPAGNQG64qVwELVcvbVCh YPSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jD8PC2c4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ke12si12190880ejc.738.2021.06.14.09.19.01; Mon, 14 Jun 2021 09:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jD8PC2c4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234559AbhFNQUF (ORCPT + 99 others); Mon, 14 Jun 2021 12:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234124AbhFNQUF (ORCPT ); Mon, 14 Jun 2021 12:20:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0BDC061574; Mon, 14 Jun 2021 09:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5vWKwcu5zXbIS0gqk+gmRAwRmyT4qPUE/hpJYzofpcg=; b=jD8PC2c4jAqYP3BBYSnpaO0JFY FkpdHb8tru56FNbInWWf7nQCM6f/s+sl5xm9SvPduA6+Zn99Ia9kMiYa7Ap/sSiZzc7FrqQKsgird JMVaPlutN5bfhuqP2tGqQRAUdTHhdtEJi1wWMimTsjtMZQULcK7qWmtSdIFJq0UJaX610LWJEQptx tUqkHgSDI7oEZLWLfYq3NAflpVGhL0Z6VHIIxblppLbUDxSNpM6Nm728luSLDLWFbiqoPtYHzUxG5 H1Q+K+AgRQw7Ht8HDyzptEMNGD1HjknRQHmO/prS5fT5FeY4BY6iBnga1SHHblvzAS5c7EWG87HVK iIrEk0/A==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lspHG-005blJ-Dp; Mon, 14 Jun 2021 16:17:36 +0000 Date: Mon, 14 Jun 2021 17:17:30 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: Andrew Morton , Jan Kara , Al Viro , Greg Kroah-Hartman , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: remove the implicit .set_page_dirty default Message-ID: References: <20210614061512.3966143-1-hch@lst.de> <20210614155333.GB2413@lst.de> <20210614155530.GA2563@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614155530.GA2563@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 05:55:30PM +0200, Christoph Hellwig wrote: > On Mon, Jun 14, 2021 at 05:53:33PM +0200, Christoph Hellwig wrote: > > On Mon, Jun 14, 2021 at 01:23:22PM +0100, Matthew Wilcox wrote: > > > i have a somewhat similar series in the works ... > > > > > > https://git.infradead.org/users/willy/pagecache.git/commitdiff/1e7e8c2d82666b55690705d5bbe908e31d437edb > > > https://git.infradead.org/users/willy/pagecache.git/commitdiff/bf767a4969c0bc6735275ff7457a8082eef4c3fd > > > > > > ... the other patches rather depend on the folio work. > > > > Yes, these looks useful to me as well. > > > And in fact I suspect the code in __set_page_dirty_no_writeback should > really be the default if no ->set_page_dirty is set up. It is the > same code as the no-mapping case and really makes sense as the default > case.. yes; i was even wondering if that should be conditional on one of the "no writeback" bits in mapping ...