<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/bcachefs/acl.c, branch linux-6.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-01-01T16:47:07Z</updated>
<entry>
<title>bcachefs: make RO snapshots actually RO</title>
<updated>2024-01-01T16:47:07Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-12-30T02:16:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d72ab35a925d66b044cb62b709e53141c3f0143'/>
<id>urn:sha1:0d72ab35a925d66b044cb62b709e53141c3f0143</id>
<content type='text'>
Add checks to all the VFS paths for "are we in a RO snapshot?".

Note - we don't check this when setting inode options via our xattr
interface, since those generally only affect data placement, not
contents of data.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
Reported-by: "Carl E. Thompson" &lt;list-bcachefs@carlthompson.net&gt;
</content>
</entry>
<entry>
<title>bcachefs: acl: Add missing check in bch2_acl_chmod()</title>
<updated>2023-10-22T21:10:14Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2023-09-15T12:56:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b6c22147e0fcfd16e672093178d940db3ea6923e'/>
<id>urn:sha1:b6c22147e0fcfd16e672093178d940db3ea6923e</id>
<content type='text'>
The "ret = bkey_err(k);" assignment was accidentally left out so the
call to bch2_btree_iter_peek_slot() is not checked for errors.

Fixes: 53306e096d91 ("bcachefs: Always check for transaction restarts")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: acl: Uninitialized variable in bch2_acl_chmod()</title>
<updated>2023-10-22T21:10:14Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2023-09-15T12:55:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e9a0a26ed05a93034f3d49374dd5ef943db2d5b7'/>
<id>urn:sha1:e9a0a26ed05a93034f3d49374dd5ef943db2d5b7</id>
<content type='text'>
The clean up code at the end of the function uses "acl" so it needs
to be initialized to NULL.

Fixes: 53306e096d91 ("bcachefs: Always check for transaction restarts")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Heap allocate btree_trans</title>
<updated>2023-10-22T21:10:13Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-09-12T21:16:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6bd68ec266ad71827ef940151067b67b62fb8fed'/>
<id>urn:sha1:6bd68ec266ad71827ef940151067b67b62fb8fed</id>
<content type='text'>
We're using more stack than we'd like in a number of functions, and
btree_trans is the biggest object that we stack allocate.

But we have to do a heap allocatation to initialize it anyways, so
there's no real downside to heap allocating the entire thing.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: bch2_acl_to_text()</title>
<updated>2023-10-22T21:10:12Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-09-08T22:14:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9a7bbab1469f0c427f90c309720c543e37ab110'/>
<id>urn:sha1:a9a7bbab1469f0c427f90c309720c543e37ab110</id>
<content type='text'>
We can now print out acls from bch2_xattr_to_text(), when the xattr
contains an acl.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Assorted sparse fixes</title>
<updated>2023-10-22T21:10:06Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-07-07T02:47:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73bd774d28d2b2e6a05c31bf7afb9247e02a8e49'/>
<id>urn:sha1:73bd774d28d2b2e6a05c31bf7afb9247e02a8e49</id>
<content type='text'>
 - endianness fixes
 - mark some things static
 - fix a few __percpu annotations
 - fix silent enum conversions

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Convert acl.c to allocate_dropping_locks()</title>
<updated>2023-10-22T21:10:03Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-05-28T07:44:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ff10c0a04c4217b24997d9b127c50602d717ab3'/>
<id>urn:sha1:5ff10c0a04c4217b24997d9b127c50602d717ab3</id>
<content type='text'>
More work to avoid allocating memory with btree locks held.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Convert -ENOENT to private error codes</title>
<updated>2023-10-22T21:10:03Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-05-27T23:59:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e47a390aa5946e3c5bea7a4a350a88d3bb3ba5b4'/>
<id>urn:sha1:e47a390aa5946e3c5bea7a4a350a88d3bb3ba5b4</id>
<content type='text'>
As with previous conversions, replace -ENOENT uses with more informative
private error codes.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Assorted checkpatch fixes</title>
<updated>2023-10-22T21:09:44Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2022-10-19T22:31:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e3e02e6bce627ed9e3a5d9fd3118e6569dc2548'/>
<id>urn:sha1:3e3e02e6bce627ed9e3a5d9fd3118e6569dc2548</id>
<content type='text'>
checkpatch.pl gives lots of warnings that we don't want - suggested
ignore list:

 ASSIGN_IN_IF
 UNSPECIFIED_INT	- bcachefs coding style prefers single token type names
 NEW_TYPEDEFS		- typedefs are occasionally good
 FUNCTION_ARGUMENTS	- we prefer to look at functions in .c files
			  (hopefully with docbook documentation), not .h
			  file prototypes
 MULTISTATEMENT_MACRO_USE_DO_WHILE
			- we have _many_ x-macros and other macros where
			  we can't do this

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: EINTR -&gt; BCH_ERR_transaction_restart</title>
<updated>2023-10-22T21:09:37Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2022-07-18T03:06:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=549d173c1bd9b58c2ad41217522462e012a6545f'/>
<id>urn:sha1:549d173c1bd9b58c2ad41217522462e012a6545f</id>
<content type='text'>
Now that we have error codes, with subtypes, we can switch to our own
error code for transaction restarts - and even better, a distinct error
code for each transaction restart reason: clearer code and better
debugging.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@gmail.com&gt;
</content>
</entry>
</feed>
