mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
To: "frank.li@vivo.com" <frank.li@vivo.com>,
	Xiubo Li <xiubli@redhat.com>,
	"idryomov@gmail.com" <idryomov@gmail.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re:  [PATCH] ceph: correct superblock flags
Date: Fri, 30 May 2025 16:17:38 +0000	[thread overview]
Message-ID: <5b3f5414f900b16dfcc316c5b46b5c6bc8d2354e.camel@ibm.com> (raw)
In-Reply-To: <20250530084459.2434286-1-frank.li@vivo.com>

On Fri, 2025-05-30 at 02:44 -0600, Yangtao Li wrote:
> SB_NOATIME includes SB_NODIRATIME as a subset. Therefore,
> setting SB_NOATIME is sufficient to disable atime updates
> for all files and directories.
> 
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
>  fs/ceph/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ceph/super.c b/fs/ceph/super.c
> index f3951253e393..7c9e4987adf4 100644
> --- a/fs/ceph/super.c
> +++ b/fs/ceph/super.c
> @@ -1226,7 +1226,7 @@ static int ceph_set_super(struct super_block *s, struct fs_context *fc)
>  	s->s_time_gran = 1;
>  	s->s_time_min = 0;
>  	s->s_time_max = U32_MAX;
> -	s->s_flags |= SB_NODIRATIME | SB_NOATIME;
> +	s->s_flags |= SB_NOATIME;
>  
>  	ceph_fscrypt_set_ops(s);
> 

This modification doesn't make sense to me. And I prefer to be more conservative
here. Moreover, from my point of view, SB_NODIRATIME flag is associated with
nodiratime mount option and SB_NOATIME is associated with noatime mount option.
By setting these flags, we instruct how file system needs to behave for the case
of nodiratime and noatime mounts. So, semantically, this modification sounds
wrong to me. I don't think that we need to accept this modification, otherwise,
something could be broken.

Thanks,
Slava.


      reply	other threads:[~2025-05-30 16:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-30  8:44 Yangtao Li
2025-05-30 16:17 ` Viacheslav Dubeyko [this message]

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=5b3f5414f900b16dfcc316c5b46b5c6bc8d2354e.camel@ibm.com \
    --to=slava.dubeyko@ibm.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=frank.li@vivo.com \
    --cc=idryomov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xiubli@redhat.com \
    /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®