Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1522918
| From | Quorum Laval <quorum.laval@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] ovl: use kernel facility for updating access time |
| Date | 2016-11-15 18:00 +0100 |
| Message-ID | <sDPfr-7tr-21@gated-at.bofh.it> (permalink) |
| References | <sDPfr-7tr-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use fsstack_copy_attr_atime() instead of direct assignement.
Signed-off-by: Quorum Laval <quorum.laval@gmail.com>
---
fs/overlayfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 540caa6..083cbdb 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -329,7 +329,7 @@ int ovl_update_time(struct inode *inode, struct timespec *ts, int flags)
ovl_path_upper(alias, &upperpath);
if (upperpath.dentry) {
touch_atime(&upperpath);
- inode->i_atime = d_inode(upperpath.dentry)->i_atime;
+ fsstack_copy_attr_atime(inode, d_inode(upperpath.dentry));
}
dput(alias);
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] ovl: use kernel facility for copying attributes Quorum Laval <quorum.laval@gmail.com> - 2016-11-15 18:00 +0100
[PATCH 2/2] ovl: use kernel facility for updating access time Quorum Laval <quorum.laval@gmail.com> - 2016-11-15 18:00 +0100
Re: [PATCH 2/2] ovl: use kernel facility for updating access time Miklos Szeredi <miklos@szeredi.hu> - 2016-11-16 10:30 +0100
Re: [PATCH 1/2] ovl: use kernel facility for copying attributes Miklos Szeredi <miklos@szeredi.hu> - 2016-11-16 10:30 +0100
csiph-web