Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1406472

Re: [GIT PULL] y2038 changes for vfs

Path csiph.com!feeder.erje.net!1.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [GIT PULL] y2038 changes for vfs
Date Wed, 25 May 2016 00:30:02 +0200
Message-ID <rCsZQ-NP-15@gated-at.bofh.it> (permalink)
References <rCqY1-7Zt-7@gated-at.bofh.it>
X-Original-To Arnd Bergmann <arnd@arndb.de>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=dLPA8JPhbx5YLd9iS79z32NKwoZI6Ws47gUpu0NOCbI=; b=HwK/AkmBEJ5ejHQgb9jS3B5aPoOII/5rcJ/kQBXf0X1TykyV8tGhfUDsrzJFG8j+z2 c3wBBjkZbnzVZ7sFeszNrJCM81w5QdQYe2WEOJQeQ3+SAOPOtdiq/fl/ZzqS5q6zpZ96 veZd8TvgbHeluKzlGQd5pGEvt6eIkrkiDsT+fw3s6t9XTvxs0Uw37OiiFt9KS/BGBCzs LoRtgNYG9jRKT5MPrZ+yacli1G8dskCqkB1zrOphZGVqwK8O1BAO1GptDqWrIwiPDIWw hl4TQ8q5ylwwwgzbmoE1ecgD1CAzsVHVN5lvZAmJjMZVnZIUfzPzH2RzrqiAtAbUqlzV 0l6A==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=dLPA8JPhbx5YLd9iS79z32NKwoZI6Ws47gUpu0NOCbI=; b=SkIXSuSFkZr0uK8uwZBLHB4WqhS4vyzIICoutbSRY4619b8/KVEBYtSbYVEvkFFZft ftQ+CQwB7FxO7IP5iYGY+XtpY9jR30chQBhhNoF3Mc5kDZZvxf6E0PTa2y5bVKnSv4Fh cQBNYbYO4TJTZwID0H9MCBzuHUBGQkmH6zPXs=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=dLPA8JPhbx5YLd9iS79z32NKwoZI6Ws47gUpu0NOCbI=; b=CQhT9wUtEIeCwHcXD6Hp6700XOPYK9Kl6OmLibXJLcp7VQwNKy0EpBIcYKmE8MU4+a YjUT8sn+tkWEuz32799NCmDiWMyRAlvwGUfuV2hBQozfcol8di1fJl5VbgkjDcMsy+bb tyP8X3Ob4y0yO2KMchJuCmt9hW3H+vwre7f5WSFNY0Wiu0tEI5OqeTtJrZa8XSsmUEzd sRWaGiez4dM9ldSPc/vJq78xrtAuLgc5+VnKmfMUQE9Ru0K3veEdHu5ke7K1BkWDU/gc 3kc2fz0mTJ6r+fe/IpKF6CusUM18HiMEGuRsXx8+XXptUkTg4i0WIPr8OYBKT1wcSB3V NYhA==
X-Gm-Message-State ALyK8tIuaHhZnu+Xn/en+/wCqwJ0mAqeUG2ovocJub4sIR1LRQZ5kpAteDszDbHw2Y6b8pwlqddAROqRdRpjDw==
MIME-Version 1.0
X-Received by 10.107.47.130 with SMTP id v2mr942653iov.89.1464128619975; Tue, 24 May 2016 15:23:39 -0700 (PDT)
X-Google-Sender-Auth JLYkARSwFE_kchL_NTrazObvLzM
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 58
Organization linux.* mail to news gateway
X-Original-Cc Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Linux FS Devel <linux-fsdevel@vger.kernel.org>, Deepa Dinamani <deepa.kernel@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Al Viro <viro@zeniv.linux.org.uk>
X-Original-Date Tue, 24 May 2016 15:23:39 -0700
X-Original-Message-ID <CA+55aFz+Vys=S-K3f4hY0RumUx2TJSivzWCCAOtNPxU+uv7KQw@mail.gmail.com>
X-Original-References <5722005.e8ezZRvZ1E@wuerfel>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1406472

Show key headers only | View raw


On Tue, May 24, 2016 at 1:11 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> The following changes since commit bf16200689118d19de1b8d2a3c314fc21f5dc7bb:
>
>   Linux 4.6-rc3 (2016-04-10 17:58:30 -0700)
>
> are available in the git repository at:
>
>   git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git tags/y2038-4.7

The more I look at this, the less I like it.

There doesn't even seem to be any *point* to the preparatory patches.
I'm not seeing what any of those patches actually help prepare. The
two new superblock fields that it adds, for example, should likely
never be touched directly by any code in the first place, so adding
them only encourages people to add more "preparatory" patches to
filesystems that simply don't seem sensible. It's not clear we want a
seconds-based interface there, when in many ways ktime_t is much
*much* preferable for internal kernel representations for the next
hundred years or so.

For example, preparing to replace CURRENT_TIME_SEC with
current_fs_time_sec() is going to be a huge big patch replacing every
single user *anyway* due to the addition of the superblock parameter.
And since we'd have to change the type in the inode, that will be a
flag-day anyway.

So I'm not seeing real advantages to the prep-work. What does it
actually *help*? I'd have seen more point to it if it had actually
converted all the existing CURRENT_TIME_SEC cases, and basically said
"the code is now syntactically ready to start using per-sb limits".

I don't much see the point of a preparatory patch that just paves the
way for a hundred other small pointless one-liner patches, when it
shouldn't be a problem to just do it in one go.

Just as an example: code that does

        dir->i_mtime = dir->i_ctime = CURRENT_TIME_SEC;

could pretty mechanically be converted to

        dir->i_mtime = dir->i_ctime = current_fs_time(sb);

and there really is only about a hundred of those. THAT would be a
preparatory patch that actually adds value.

IOW, do it as one single patch that gets rid of a bad interface, not
as "one pointless preparatory patch that than makes it possible to
make a hundred other pointless patches to use it".

It's not like it's hard to compile-test the pretty mechanical
conversion. There are no architecture-specific users, so I suspect
that a trivial "make allmodconfig" build will catch all the cases.

Why drag something like this out, in other words?

                  Linus

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL] y2038 changes for vfs Arnd Bergmann <arnd@arndb.de> - 2016-05-24 22:20 +0200
  Re: [GIT PULL] y2038 changes for vfs Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-25 00:30 +0200
    Re: [GIT PULL] y2038 changes for vfs Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-25 00:50 +0200
      Re: [GIT PULL] y2038 changes for vfs Deepa Dinamani <deepa.kernel@gmail.com> - 2016-05-25 02:20 +0200
    Re: [GIT PULL] y2038 changes for vfs Arnd Bergmann <arnd@arndb.de> - 2016-05-25 18:10 +0200
      Re: [GIT PULL] y2038 changes for vfs Dave Chinner <david@fromorbit.com> - 2016-05-25 23:40 +0200

csiph-web