diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-18 15:44:40 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-07-18 15:44:40 +0200 |
commit | d9854c87f0ed1a5f32fec24bb5b5fb426ad79c26 (patch) | |
tree | 4534c1e787964a39a0074373325737153160a5d5 /fs/overlayfs/inode.c | |
parent | f182536684d876afaf4627c36a16c4e15ea8a2b8 (diff) | |
download | linux-d9854c87f0ed1a5f32fec24bb5b5fb426ad79c26.tar.bz2 |
ovl: copy up times
Copy up mtime and ctime to overlay inode after times in real object are
modified. Be careful not to dirty cachelines when not necessary.
This is in preparation for moving overlay functionality out of the VFS.
This patch shouldn't have any observable effect.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/inode.c')
-rw-r--r-- | fs/overlayfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c index ed16a898caeb..0fa48d5644e2 100644 --- a/fs/overlayfs/inode.c +++ b/fs/overlayfs/inode.c @@ -304,6 +304,9 @@ int ovl_xattr_set(struct dentry *dentry, struct inode *inode, const char *name, } revert_creds(old_cred); + /* copy c/mtime */ + ovl_copyattr(d_inode(realdentry), inode); + out_drop_write: ovl_drop_write(dentry); out: |