<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/squashfs/file.c, branch linux-6.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-01-25T06:47:22Z</updated>
<entry>
<title>squashfs: convert squashfs_fill_page() to take a folio</title>
<updated>2025-01-25T06:47:22Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2024-12-20T22:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5748be3e9ef4659f9adf7e1ad454fafb0868cd88'/>
<id>urn:sha1:5748be3e9ef4659f9adf7e1ad454fafb0868cd88</id>
<content type='text'>
squashfs_fill_page is only used in this file, so make it static.
Use kmap_local instead of kmap_atomic, and return a bool so that
the caller can use folio_end_read() which saves an atomic operation
over calling folio_mark_uptodate() followed by folio_unlock().

[willy@infradead.org: fix polarity of "uptodate" Thanks to Ryan for testing]
  Link: https://lkml.kernel.org/r/20250110163300.3346321-2-willy@infradead.org
Link: https://lkml.kernel.org/r/20241220224634.723899-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Tested-by: Ryan Roberts &lt;ryan.roberts@arm.com&gt;
Cc: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>squashfs; convert squashfs_copy_cache() to take a folio</title>
<updated>2025-01-25T06:47:22Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2024-12-20T22:46:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5641371fd0b3703d11809a0ae249aed270cb8add'/>
<id>urn:sha1:5641371fd0b3703d11809a0ae249aed270cb8add</id>
<content type='text'>
Remove accesses to page-&gt;index and page-&gt;mapping.  Also use folio
APIs where available.  This code still assumes order 0 folios.

[dan.carpenter@linaro.org: fix a NULL vs IS_ERR() bug]
  Link: https://lkml.kernel.org/r/7b7f44d6-9153-4d7c-b65b-2d78febe6c7a@stanley.mountain
Link: https://lkml.kernel.org/r/20241220224634.723899-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Cc: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Cc: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>squashfs: convert squashfs_readpage_block() to take a folio</title>
<updated>2025-01-25T06:47:22Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2024-12-20T22:46:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a7aea59cf4dd4a070c4550fddaffc5a73312cad'/>
<id>urn:sha1:2a7aea59cf4dd4a070c4550fddaffc5a73312cad</id>
<content type='text'>
Remove a few accesses to page-&gt;mapping.

Link: https://lkml.kernel.org/r/20241220224634.723899-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Cc: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>squashfs: pass a folio to squashfs_readpage_fragment()</title>
<updated>2025-01-25T06:47:22Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2024-12-20T22:46:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c1565fcf6392d2f962b7cbc9fde43bfcd175c2f'/>
<id>urn:sha1:8c1565fcf6392d2f962b7cbc9fde43bfcd175c2f</id>
<content type='text'>
Remove an access to page-&gt;mapping.

Link: https://lkml.kernel.org/r/20241220224634.723899-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Cc: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>squashfs: use a folio throughout squashfs_read_folio()</title>
<updated>2025-01-25T06:47:22Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2024-12-20T22:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=608c2501675cd37260312d35daa2fd6dc6d56e96'/>
<id>urn:sha1:608c2501675cd37260312d35daa2fd6dc6d56e96</id>
<content type='text'>
Use modern folio APIs where they exist and convert back to struct
page for the internal functions.

Link: https://lkml.kernel.org/r/20241220224634.723899-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Cc: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Squashfs: Ensure all readahead pages have been used</title>
<updated>2024-08-23T11:11:36Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2024-08-22T23:31:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=84e0e03b308816a48c67f6da2168fcea6d49eda8'/>
<id>urn:sha1:84e0e03b308816a48c67f6da2168fcea6d49eda8</id>
<content type='text'>
In the recent work to remove page-&gt;index, a sanity check
that ensured all the readhead pages were covered by the
Squashfs data block was removed [1].

To avoid any regression, this commit adds the sanity check
back in an equivalent way.  Namely the page actor will now
return error if any pages are unused after completion.

[1] https://lore.kernel.org/all/20240818235847.170468-3-phillip@squashfs.org.uk/

--

Signed-off-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Link: https://lore.kernel.org/r/20240822233106.121522-1-phillip@squashfs.org.uk
V3: last_page should be actor-&gt;last_page
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>Squashfs: Rewrite and update squashfs_readahead_fragment() to not use page-&gt;index</title>
<updated>2024-08-19T12:08:21Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2024-08-18T23:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd54fa6efe0dd3894d6fd703f8856675b4bf8315'/>
<id>urn:sha1:fd54fa6efe0dd3894d6fd703f8856675b4bf8315</id>
<content type='text'>
The previous implementation lacked error checking (e.g. the bytes
returned by squashfs_fill_page() is not checked), and the use of
page-&gt;index could not be removed without substantially rewriting
the routine to use the page actor abstraction used elsewhere.

Signed-off-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Link: https://lore.kernel.org/r/20240818235847.170468-5-phillip@squashfs.org.uk
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>Squashfs: Update squashfs_readahead() to not use page-&gt;index</title>
<updated>2024-08-19T12:08:20Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2024-08-18T23:58:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f09ffb1f4fadf156d5d1032217b9d1fa4e07dbe'/>
<id>urn:sha1:6f09ffb1f4fadf156d5d1032217b9d1fa4e07dbe</id>
<content type='text'>
This commit removes references to page-&gt;index in the pages returned
from __readahead_batch(), and instead uses the 'start' variable.

This does reveal a bug in the previous code in that 'start' was
not updated every time around the loop.  This is fixed in this
commit.

Signed-off-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Link: https://lore.kernel.org/r/20240818235847.170468-3-phillip@squashfs.org.uk
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>Squashfs: Update page_actor to not use page-&gt;index</title>
<updated>2024-08-19T12:08:20Z</updated>
<author>
<name>Phillip Lougher</name>
</author>
<published>2024-08-18T23:58:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2258e22f05aff5865c93cbd4e9acba55b295d832'/>
<id>urn:sha1:2258e22f05aff5865c93cbd4e9acba55b295d832</id>
<content type='text'>
This commit removes an unnecessary use of page-&gt;index,
and moves the other use over to folio-&gt;index.

Signed-off-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Link: https://lore.kernel.org/r/20240818235847.170468-2-phillip@squashfs.org.uk
Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>squashfs: remove calls to set the folio error flag</title>
<updated>2024-05-08T15:41:28Z</updated>
<author>
<name>Matthew Wilcox (Oracle)</name>
</author>
<published>2024-04-20T02:50:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bbf45b7e68555569489ab2428dd9c23960cdc9bf'/>
<id>urn:sha1:bbf45b7e68555569489ab2428dd9c23960cdc9bf</id>
<content type='text'>
Nobody checks the error flag on squashfs folios, so stop setting it.

Link: https://lkml.kernel.org/r/20240420025029.2166544-24-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Tested-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Reviewed-by: Phillip Lougher &lt;phillip@squashfs.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
</feed>
