lkml.org 
[lkml]   [2020]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [f2fs-dev] [PATCH] f2fs: fix race of pending_pages in decompression
    On Fri, Dec 04, 2020 at 02:00:34PM +0900, Daeho Jeong wrote:
    > I think I don't understand how verity works.
    > Right after verity is enabled on a file, is the verity logic working
    > for the whole file data area?
    > Or it's just working for the data area which is updated after verity is enabled?
    >

    It's for the whole file.

    My point is just that if there is a bio that saw that verity isn't enabled yet
    when it started and therefore STEP_VERITY didn't get set in the
    bio_post_read_ctx (or the bio_post_read_ctx didn't get allocated due to one not
    being needed), then the filesystem shouldn't change its mind and try to verify
    the pages when the bio completes if verity happened to be enabled concurrently.
    It's too late for that bio.

    - Eric

    \
     
     \ /
      Last update: 2020-12-04 06:21    [W:2.351 / U:0.336 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site