[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wjQwqW+FJ_dsq8M58=5joQdV+8Q51bmyjvrBV6Z68VF0Q@mail.gmail.com>
Date: Tue, 3 May 2022 15:41:32 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Andreas Gruenbacher <agruenba@...hat.com>
Cc: Christoph Hellwig <hch@...radead.org>,
"Darrick J. Wong" <djwong@...nel.org>,
Dave Chinner <dchinner@...hat.com>,
cluster-devel <cluster-devel@...hat.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [GIT PULL] gfs2 fix
On Tue, May 3, 2022 at 2:35 PM Andreas Gruenbacher <agruenba@...hat.com> wrote:
>
> More testing still ongoing, but the following patch seems to fix the
> data corruption.
Fingers crossed.
> + truncate_pagecache_range(inode, hstart, hend - 1);
> + if (hstart < hend)
> + punch_hole(ip, hstart, hend - hstart);
Why doesn't that "hstart < hend" condition cover both the truncate and
the hole punch?
Linus
Powered by blists - more mailing lists