From: Christian Brauner <brauner@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christian Brauner <brauner@kernel.org>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] timestamp fixes
Date: Mon, 18 Sep 2023 13:53:25 +0200 [thread overview]
Message-ID: <20230918-hirte-neuzugang-4c2324e7bae3@brauner> (raw)
Hey Linus,
/* Summary */
This contains a few fixes for the multi-grain timestamps work for this cycle:
* Only update the atime if "now" is later than the current value. This
can happen when the atime gets updated with a fine-grained timestamp
and then later gets updated using a coarse-grained timestamp.
* Make sure setattr_copy() handles multi-grained timestamps.
* Always initialize the __i_ctime field during allocation otherwise
inode_set_ctime_current() may skip initializing __i_ctime because the
random value in there might be in the future.
* Fix overlayfs to always set ctime when it sets atime and mtime.
/* Testing */
clang: Ubuntu clang version 15.0.7
gcc: (Ubuntu 12.2.0-3ubuntu1) 12.2.0
All patches are based on v6.6-rc1 and have been sitting in linux-next.
No build failures or warnings were observed. All old and new tests in
selftests, and LTP pass without regressions.
/* Conflicts */
At the time of creating this PR no merge conflicts were reported from
linux-next and no merge conflicts showed up doing a test-merge with
current mainline.
The following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d:
Linux 6.6-rc1 (2023-09-10 16:28:41 -0700)
are available in the Git repository at:
git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/v6.6-rc2.vfs.ctime
for you to fetch changes up to f8edd33686154b9165457c95e2ed5943e916781e:
overlayfs: set ctime when setting mtime and atime (2023-09-14 10:24:36 +0200)
Please consider pulling these changes from the signed v6.6-rc2.vfs.ctime tag.
Thanks!
Christian
----------------------------------------------------------------
v6.6-rc2.vfs.ctime
----------------------------------------------------------------
Jeff Layton (4):
fs: have setattr_copy handle multigrain timestamps appropriately
fs: initialize inode->__i_ctime to the epoch
fs: don't update the atime if existing atime is newer than "now"
overlayfs: set ctime when setting mtime and atime
fs/attr.c | 52 ++++++++++++++++++++++++++++++++++++++++++++------
fs/inode.c | 6 ++++--
fs/overlayfs/copy_up.c | 2 +-
3 files changed, 51 insertions(+), 9 deletions(-)
next reply other threads:[~2023-09-18 11:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-18 11:53 Christian Brauner [this message]
2023-09-18 18:24 ` Linus Torvalds
2023-09-18 19:39 ` Jeff Layton
2023-09-18 20:18 ` Linus Torvalds
2023-09-18 20:56 ` Jeff Layton
2023-09-18 22:10 ` Linus Torvalds
2023-09-19 8:28 ` Christian Brauner
2023-09-20 16:22 ` Christian Brauner
2023-09-20 18:00 ` Linus Torvalds
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=20230918-hirte-neuzugang-4c2324e7bae3@brauner \
--to=brauner@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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
all inboxes | Powered by JetHome®