[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230324222951.GA5083@sol.localdomain>
Date: Fri, 24 Mar 2023 15:29:51 -0700
From: Eric Biggers <ebiggers@...nel.org>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: tytso@....edu, adilger.kernel@...ger.ca,
linux-ext4@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH v2 23/29] ext4: Convert ext4_mpage_readpages() to work on
folios
On Fri, Mar 24, 2023 at 06:01:23PM +0000, Matthew Wilcox (Oracle) wrote:
> if (first_hole != blocks_per_page) {
> - zero_user_segment(page, first_hole << blkbits,
> - PAGE_SIZE);
> + folio_zero_segment(folio, first_hole << blkbits,
> + folio_size(folio));
> if (first_hole == 0) {
> - if (ext4_need_verity(inode, page->index) &&
> - !fsverity_verify_page(page))
> + if (ext4_need_verity(inode, folio->index) &&
> + !fsverity_verify_page(&folio->page))
> goto set_error_page;
This can use fsverity_verify_folio().
- Eric
Powered by blists - more mailing lists