linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Quorum Laval <quorum.laval@gmail.com>
To: miklos@szeredi.hu
Cc: Quorum Laval <quorum.laval@gmail.com>,
	linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] ovl: use kernel facility for updating access time
Date: Tue, 15 Nov 2016 17:54:54 +0100	[thread overview]
Message-ID: <1479228894-10533-2-git-send-email-quorum.laval@gmail.com> (raw)
In-Reply-To: <1479228894-10533-1-git-send-email-quorum.laval@gmail.com>

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

  reply	other threads:[~2016-11-15 16:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15 16:54 [PATCH 1/2] ovl: use kernel facility for copying attributes Quorum Laval
2016-11-15 16:54 ` Quorum Laval [this message]
2016-11-16  9:25   ` [PATCH 2/2] ovl: use kernel facility for updating access time Miklos Szeredi
2016-11-16  9:23 ` [PATCH 1/2] ovl: use kernel facility for copying attributes Miklos Szeredi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1479228894-10533-2-git-send-email-quorum.laval@gmail.com \
    --to=quorum.laval@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).