[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211122030038.1938875-5-cgxu519@mykernel.net>
Date: Mon, 22 Nov 2021 11:00:35 +0800
From: Chengguang Xu <cgxu519@...ernel.net>
To: miklos@...redi.hu, jack@...e.cz, amir73il@...il.com
Cc: linux-unionfs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Chengguang Xu <charliecgxu@...cent.com>
Subject: [RFC PATCH V6 4/7] ovl: set 'DONTCACHE' flag for overlayfs inode
From: Chengguang Xu <charliecgxu@...cent.com>
Set 'DONTCACHE' flag to overlayfs inode so that
upper inode to be always synced before eviction.
Signed-off-by: Chengguang Xu <charliecgxu@...cent.com>
---
fs/overlayfs/inode.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 027ffc0a2539..c4472299d5df 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -791,6 +791,7 @@ void ovl_inode_init(struct inode *inode, struct ovl_inode_params *oip,
ovl_copyattr(realinode, inode);
ovl_copyflags(realinode, inode);
ovl_map_ino(inode, ino, fsid);
+ d_mark_dontcache(inode);
}
static void ovl_fill_inode(struct inode *inode, umode_t mode, dev_t rdev)
--
2.27.0
Powered by blists - more mailing lists