lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKYAXd9JqbBiZK077KwzjWXYM0Gk-qKEPv_1mre9Wqv7kUBuew@mail.gmail.com>
Date: Sun, 18 Jan 2026 14:00:38 +0900
From: Namjae Jeon <linkinjeon@...nel.org>
To: Christoph Hellwig <hch@....de>
Cc: viro@...iv.linux.org.uk, brauner@...nel.org, tytso@....edu, 
	willy@...radead.org, jack@...e.cz, djwong@...nel.org, josef@...icpanda.com, 
	sandeen@...deen.net, rgoldwyn@...e.com, xiang@...nel.org, dsterba@...e.com, 
	pali@...nel.org, ebiggers@...nel.org, neil@...wn.name, amir73il@...il.com, 
	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org, 
	iamjoonsoo.kim@....com, cheol.lee@....com, jay.sim@....com, gunho.lee@....com, 
	Hyunchul Lee <hyc.lee@...il.com>
Subject: Re: [PATCH v5 09/14] ntfs: update runlist handling and cluster allocator

On Fri, Jan 16, 2026 at 6:21 PM Christoph Hellwig <hch@....de> wrote:
>
> > +     for (index = start_index; index < end_index; index++) {
> > +             folio = filemap_lock_folio(vol->lcnbmp_ino->i_mapping, index);
> > +             if (IS_ERR(folio)) {
> > +                     page_cache_sync_readahead(vol->lcnbmp_ino->i_mapping, ra, NULL,
>
> You probably only want to kick off a read for -ENOENT here, and not
> any error?
Right, I will fix it.
>
> > +                                     index, end_index - index);
> > +                     folio = read_mapping_folio(vol->lcnbmp_ino->i_mapping, index, NULL);
> > +                     if (!IS_ERR(folio))
> > +                             folio_lock(folio);
> > +             }
>
> either way, this seems like a nice primitive for doing reasonably
> efficient reads from the page cache, and I could think of a few
> other places to it.  Maybe factor it into helper, even if you keep
> it in the ntfs code for now?
Okay, I will update it.
Thanks!
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ