From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: Eric Whitney <enwlinux@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH] ext4: remove EXT4_EOFBLOCKS_FL and associated code
Date: Thu, 5 Mar 2020 15:57:24 -0500 [thread overview]
Message-ID: <20200305205724.GE20967@mit.edu> (raw)
In-Reply-To: <20200211210216.24960-1-enwlinux@gmail.com>
On Tue, Feb 11, 2020 at 04:02:16PM -0500, Eric Whitney wrote:
> The EXT4_EOFBLOCKS_FL inode flag is used to indicate whether a file
> contains unwritten blocks past i_size. It's set when ext4_fallocate
> is called with the KEEP_SIZE flag to extend a file with an unwritten
> extent. However, this flag hasn't been useful functionally since
> March, 2012, when a decision was made to remove it from ext4.
>
> All traces of EXT4_EOFBLOCKS_FL were removed from e2fsprogs version
> 1.42.2 by commit 010dc7b90d97 ("e2fsck: remove EXT4_EOFBLOCKS_FL flag
> handling") at that time. Now that enough time has passed to make
> e2fsprogs versions containing this modification common, this patch now
> removes the code associated with EXT4_EOFBLOCKS_FL from the kernel as
> well.
>
> This change has two implications. First, because pre-1.42.2 e2fsck
> versions only look for a problem if EXT4_EOFBLOCKS_FL is set, and
> because that bit will never be set by newer kernels containing this
> patch, old versions of e2fsck won't have a compatibility problem with
> files created by newer kernels.
>
> Second, newer kernels will not clear EXT4_EOFBLOCKS_FL inode flag bits
> belonging to a file written by an older kernel. If set, it will remain
> in that state until the file is deleted. Because e2fsck versions since
> 1.42.2 don't check the flag at all, no adverse effect is expected.
> However, pre-1.42.2 e2fsck versions that do check the flag may report
> that it is set when it ought not to be after a file has been truncated
> or had its unwritten blocks written. In this case, the old version of
> e2fsck will offer to clear the flag. No adverse effect would then
> occur whether the user chooses to clear the flag or not.
>
> Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Applied, thanks.
- Ted
prev parent reply other threads:[~2020-03-05 20:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-11 21:02 [PATCH] ext4: remove EXT4_EOFBLOCKS_FL and associated code Eric Whitney
2020-03-05 20:57 ` Theodore Y. Ts'o [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=20200305205724.GE20967@mit.edu \
--to=tytso@mit.edu \
--cc=enwlinux@gmail.com \
--cc=linux-ext4@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.