Setup private bdi to collect overlayfs' dirty inodes. Signed-off-by: Chengguang Xu <cgxu519@xxxxxxxxxxxx> --- fs/overlayfs/super.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 290983b..dc22725 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -1863,6 +1863,9 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent) int err; sb->s_d_op = &ovl_dentry_operations; + err = super_setup_bdi(sb); + if (err) + goto out; err = -ENOMEM; ofs = kzalloc(sizeof(struct ovl_fs), GFP_KERNEL); -- 1.8.3.1