[Cluster-devel] [GIT PULL] gfs2 fix

Linus Torvalds torvalds at linux-foundation.org
Tue May 3 22:41:32 UTC 2022


On Tue, May 3, 2022 at 2:35 PM Andreas Gruenbacher <agruenba at redhat.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



More information about the Cluster-devel mailing list