[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210923130814.140814-2-cgxu519@mykernel.net>
Date: Thu, 23 Sep 2021 21:08:05 +0800
From: Chengguang Xu <cgxu519@...ernel.net>
To: miklos@...redi.hu, jack@...e.cz, amir73il@...il.com
Cc: linux-fsdevel@...r.kernel.org, linux-unionfs@...r.kernel.org,
linux-kernel@...r.kernel.org, Chengguang Xu <cgxu519@...ernel.net>
Subject: [RFC PATCH v5 01/10] ovl: setup overlayfs' private bdi
Setup overlayfs' private bdi so that we can collect
overlayfs' own dirty inodes.
Signed-off-by: Chengguang Xu <cgxu519@...ernel.net>
---
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, void *data, int silent)
if (!ofs)
goto out;
+ err = super_setup_bdi(sb);
+ if (err)
+ goto out_err;
+
err = -ENOMEM;
ofs->creator_cred = cred = prepare_creds();
if (!cred)
--
2.27.0
Powered by blists - more mailing lists