]> git.hungrycats.org Git - linux/commit
btrfs: support inheritance for per-inode compression levels
authorkoraynilay <koray.fra@gmail.com>
Tue, 3 Nov 2026 19:47:32 +0000 (20:47 +0100)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 3 Nov 2026 23:39:28 +0000 (18:39 -0500)
commitf1ed856e732f62ca0a0dc413068937e8d856ff8c
tree68e4d7eb172e8a361ff78ff87eafeca5877aa122
parent028a26fdfebc49832d0f7401b20019df7f93962d
btrfs: support inheritance for per-inode compression levels

Change prop_handler's extract() signature to take an output buffer and
its length. This allows for the algo:level string to be generated
dynamically, but now the caller is in charge of managing that buffer
memory. Before this patch prop_compression_extract() would return only
the address of statically compiled string without being able to add the
level, now it concatenates the level to that statically compiled string.

This signature change is fine because the only currently supported prop
is compression, so there is only 1 extract() function.

Assisted-by: Gemini:3.1-pro antigravity-cli-1.1.5
Signed-off-by: koraynilay <koray.fra@gmail.com>
Link: https://lore.kernel.org/r/20261103194734.598182-5-koray.fra@gmail.com
fs/btrfs/props.c