<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/bcachefs/inode.c, branch linux-6.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-05-09T20:23:36Z</updated>
<entry>
<title>bcachefs: s/bkey_invalid_flags/bch_validate_flags</title>
<updated>2024-05-09T20:23:36Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-05-08T22:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65eaf4e24ab6b4809491248e1fed36b8d49c1ea9'/>
<id>urn:sha1:65eaf4e24ab6b4809491248e1fed36b8d49c1ea9</id>
<content type='text'>
We're about to start using bch_validate_flags for superblock section
validation - it's no longer bkey specific.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Fix type of flags parameter for some -&gt;trigger() implementations</title>
<updated>2024-05-08T21:29:21Z</updated>
<author>
<name>Nathan Chancellor</name>
</author>
<published>2024-04-23T18:58:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d288745ebc202d7ac4905cba4a540549dc8044e'/>
<id>urn:sha1:2d288745ebc202d7ac4905cba4a540549dc8044e</id>
<content type='text'>
When building with clang's -Wincompatible-function-pointer-types-strict
(a warning designed to catch potential kCFI failures at build time),
there are several warnings along the lines of:

  fs/bcachefs/bkey_methods.c:118:2: error: incompatible function pointer types initializing 'int (*)(struct btree_trans *, enum btree_id, unsigned int, struct bkey_s_c, struct bkey_s, enum btree_iter_update_trigger_flags)' with an expression of type 'int (struct btree_trans *, enum btree_id, unsigned int, struct bkey_s_c, struct bkey_s, unsigned int)' [-Werror,-Wincompatible-function-pointer-types-strict]
    118 |         BCH_BKEY_TYPES()
        |         ^~~~~~~~~~~~~~~~
  fs/bcachefs/bcachefs_format.h:394:2: note: expanded from macro 'BCH_BKEY_TYPES'
    394 |         x(inode,                8)                      \
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
  fs/bcachefs/bkey_methods.c:117:41: note: expanded from macro 'x'
    117 | #define x(name, nr) [KEY_TYPE_##name]   = bch2_bkey_ops_##name,
        |                                           ^~~~~~~~~~~~~~~~~~~~
  &lt;scratch space&gt;:277:1: note: expanded from here
    277 | bch2_bkey_ops_inode
        | ^~~~~~~~~~~~~~~~~~~
  fs/bcachefs/inode.h:26:13: note: expanded from macro 'bch2_bkey_ops_inode'
     26 |         .trigger        = bch2_trigger_inode,           \
      |                           ^~~~~~~~~~~~~~~~~~

There are several functions that did not have their flags parameter
converted to 'enum btree_iter_update_trigger_flags' in the recent
unification, which will cause kCFI failures at runtime because the
types, while ABI compatible (hence no warning from the non-strict
version of this warning), do not match exactly.

Fix up these functions (as well as a few other obvious functions that
should have it, even if there are no warnings currently) to resolve the
warnings and potential kCFI runtime failures.

Fixes: 31e4ef3280c8 ("bcachefs: iter/update/trigger/str_hash flag cleanup")
Signed-off-by: Nathan Chancellor &lt;nathan@kernel.org&gt;
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: iter/update/trigger/str_hash flag cleanup</title>
<updated>2024-05-08T21:29:18Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-04-07T22:05:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5dd8c60e1e044816d789098ce2454a130e06b03d'/>
<id>urn:sha1:5dd8c60e1e044816d789098ce2454a130e06b03d</id>
<content type='text'>
Combine iter/update/trigger/str_hash flags into a single enum, and
x-macroize them for a to_text() function later.

These flags are all for a specific iter/key/update context, so it makes
sense to group them together - iter/update/trigger flags were already
given distinct bits, this cleans up and unifies that handling.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: prt_printf() now respects \r\n\t</title>
<updated>2024-05-08T21:29:17Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-04-10T20:08:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7423330e30ab916d56ce9a9d49e37e40ead5b153'/>
<id>urn:sha1:7423330e30ab916d56ce9a9d49e37e40ead5b153</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: fix integer conversion bug</title>
<updated>2024-04-29T01:34:29Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-04-25T18:41:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c258c08add1cc8fa7719f112c5db36c08c507f1e'/>
<id>urn:sha1:c258c08add1cc8fa7719f112c5db36c08c507f1e</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: fix misplaced newline in __bch2_inode_unpacked_to_text()</title>
<updated>2024-04-01T00:36:10Z</updated>
<author>
<name>Thomas Bertschinger</name>
</author>
<published>2024-03-21T03:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=688d750d10aa9c4fb71c5154521c775f94c887e0'/>
<id>urn:sha1:688d750d10aa9c4fb71c5154521c775f94c887e0</id>
<content type='text'>
before:

u64s 18 type inode_v3 0:1879048192:U32_MAX len 0 ver 0:   mode=40700
  flags= (15300000)
  journal_seq=4
  bi_size=0
  bi_sectors=0

  bi_version=0bi_atime=227064388944
  ...

after:

u64s 18 type inode_v3 0:1879048192:U32_MAX len 0 ver 0:   mode=40700
  flags= (15300000)
  journal_seq=4
  bi_size=0
  bi_sectors=0
  bi_version=0
  bi_atime=227064388944
  ...

Signed-off-by: Thomas Bertschinger &lt;tahbertschinger@gmail.com&gt;
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Always flush write buffer in delete_dead_inodes()</title>
<updated>2024-03-14T01:22:26Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-03-11T03:00:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d04409a62c322494cca0d0d8fef8b7f2d3bcc3f'/>
<id>urn:sha1:5d04409a62c322494cca0d0d8fef8b7f2d3bcc3f</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: bch2_btree_bit_mod -&gt; bch2_btree_bit_mod_buffered</title>
<updated>2024-03-14T01:22:24Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-02-09T00:10:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=506b187603f18755d69c19559828a6a9ed48093a'/>
<id>urn:sha1:506b187603f18755d69c19559828a6a9ed48093a</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Check subvol &lt;-&gt; inode pointers in check_subvol()</title>
<updated>2024-03-14T01:22:23Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-02-06T03:20:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c20278eb18ac22691aea6d9ecc8d98acffafd0d'/>
<id>urn:sha1:4c20278eb18ac22691aea6d9ecc8d98acffafd0d</id>
<content type='text'>
Subvolumes and subvolume root inodes point to each other: this verifies
the subvolume -&gt; inode -&gt; subvolme path.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: move fsck_write_inode() to inode.c</title>
<updated>2024-03-10T19:34:09Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-02-01T12:35:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=69c8e6ce022fd87abb9c8dbbdcfd312d6513b055'/>
<id>urn:sha1:69c8e6ce022fd87abb9c8dbbdcfd312d6513b055</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
</feed>
