Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp571931pxb; Thu, 23 Sep 2021 06:26:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMEpc7DNHhBRqyT0Q4CYiM83JfbBxJkDwvEGdC8nxkaMW2IW8Cy8eA2sPrkdvhMjpkGk7/ X-Received: by 2002:a50:e089:: with SMTP id f9mr5409393edl.290.1632403615317; Thu, 23 Sep 2021 06:26:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632403615; cv=pass; d=google.com; s=arc-20160816; b=imA+aYGzwLiv0YKu2qjWCpHEvET0u2nrpWZQJbhjjO1exmHnZwpWGjOcAzqmrVGuPB pRpAKQBXc1vmxvCUdgQCBMlM70iX4Or+pClbyPw2BcWoom/kObjiNMsSPE4Mx5gfZG0U MzM6kf1k8LJMo4pfhP0jfBzpNZop7Ad6aeg4ghlCFGQ4DEsgDKiXd/jkvhJOM/0LUPdj NaiFGhlWfN0toMdS3BA9rD3/umICV1qD2mtv4k8AU8l/4+HtBbN6P/VejyAQcMycYLCO HLr1vmK9H2FtSWbECQHf1vabjRX24Otix0TMyOC5E/LpCJDYX+F9N2sH6TNNrDdzM2wW Ygng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=BUzq9Nw85NI4rCLzem4WvUl+lsGH5mOKA8UJLkEtvlg=; b=x+Qwb/AvqpKmLHkSvtLorcIoT6qvJK6Ux+OBi0b/kFpwIIBZ21hejwg8RiEwhwb+ps pE6ymVE6vnyNhl8BgRUAzsDTgBBmvzlEr1G0BLlFMB9fP2D+gp7VPbBEQcOo4dnfNx85 ecFclTq5auSwh4PF6RM6ELaUcLlmELiO2Q2Ed9vQ3t7sPRePm6Ej4OFuxQ5AfF9OIfPJ Gk74AGOgbUs5cTE5dBBgW/0j64aR4NS43vFKNkhgAyF3aqPH+bfrzNuYgv4gE92nQWTf b9p1+vpSgwlOw8GgdVrKulBn4ivOs7CRnxZfH/2TS2UhnZ37E5OlQB2FFv5II5lW0BlB IDFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mykernel.net header.s=zohomail header.b=X8i5R5oc; arc=pass (i=1 spf=pass spfdomain=mykernel.net dkim=pass dkdomain=mykernel.net dmarc=pass fromdomain=mykernel.net>); 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 i10si7230494ejd.745.2021.09.23.06.26.29; Thu, 23 Sep 2021 06:26:55 -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=@mykernel.net header.s=zohomail header.b=X8i5R5oc; arc=pass (i=1 spf=pass spfdomain=mykernel.net dkim=pass dkdomain=mykernel.net dmarc=pass fromdomain=mykernel.net>); 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 S241467AbhIWN0L (ORCPT + 99 others); Thu, 23 Sep 2021 09:26:11 -0400 Received: from sender2-op-o12.zoho.com.cn ([163.53.93.243]:17284 "EHLO sender2-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241416AbhIWNZz (ORCPT ); Thu, 23 Sep 2021 09:25:55 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1632402518; cv=none; d=zoho.com.cn; s=zohoarc; b=HVj590TZaxGsnVA2O5lZ0pLpPyNFSLFe2gysnBVdtFfGHI9kp3LJ/nmln+JcUCJDtc8s59pFHXaKSSzz6eHNeAwaFEkGu8yV0ai5b+MTeka4L6cuDvfIynsGfzaSxtx4cadVb6fTqAQBFWmob2hUk63lzt41XeEnQXMukiRvvEM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com.cn; s=zohoarc; t=1632402518; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=BUzq9Nw85NI4rCLzem4WvUl+lsGH5mOKA8UJLkEtvlg=; b=eEC7aRdbfXV3Uz6aRCVzJddTHBP11c5+/em2WRByqMH11zB/vt440HxZgRs3cXO8yyBujqh1niZXbDs6/N1uURKKVyYolp41AZJQefYOP6VPlL+0ZvykJejiUzHfz8u/U32sXgFyP/qWRQdJJnsgEc+lPpHfA4b5QNLWN40an4c= ARC-Authentication-Results: i=1; mx.zoho.com.cn; dkim=pass header.i=mykernel.net; spf=pass smtp.mailfrom=cgxu519@mykernel.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1632402518; s=zohomail; d=mykernel.net; i=cgxu519@mykernel.net; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=BUzq9Nw85NI4rCLzem4WvUl+lsGH5mOKA8UJLkEtvlg=; b=X8i5R5ocA5qRsRqIrz9vHXfXgQh/gPbjN8JhON/5BC+psOnIt5wPJGatZTTMHUuM zRIWWshiKGewEaaFzZLJ7InZcQ9cq8Lz3FZzrXyl4iUO1+4uB9KEPL2rQneRVPggJ7Q zW98XxfuWivzXA7HFhB5YmSRLF38QmA1Jx9EC3mE= Received: from localhost.localdomain (81.71.33.115 [81.71.33.115]) by mx.zoho.com.cn with SMTPS id 1632402516780153.9678330778986; Thu, 23 Sep 2021 21:08:36 +0800 (CST) From: Chengguang Xu To: miklos@szeredi.hu, jack@suse.cz, amir73il@gmail.com Cc: linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, Chengguang Xu Message-ID: <20210923130814.140814-2-cgxu519@mykernel.net> Subject: [RFC PATCH v5 01/10] ovl: setup overlayfs' private bdi Date: Thu, 23 Sep 2021 21:08:05 +0800 X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210923130814.140814-1-cgxu519@mykernel.net> References: <20210923130814.140814-1-cgxu519@mykernel.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Setup overlayfs' private bdi so that we can collect overlayfs' own dirty inodes. Signed-off-by: Chengguang Xu --- fs/overlayfs/super.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 178daa5e82c9..51886ba6130a 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -1980,6 +1980,10 @@ static int ovl_fill_super(struct super_block *sb, vo= id *data, int silent) =09if (!ofs) =09=09goto out; =20 +=09err =3D super_setup_bdi(sb); +=09if (err) +=09=09goto out_err; + =09err =3D -ENOMEM; =09ofs->creator_cred =3D cred =3D prepare_creds(); =09if (!cred) --=20 2.27.0