]> Gentwo Git Trees - linux/.git/commit
btrfs: send: make use of -fms-extensions for defining struct fs_path
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Mon, 20 Oct 2025 14:22:28 +0000 (16:22 +0200)
committerNicolas Schier <nsc@kernel.org>
Sat, 8 Nov 2025 11:17:58 +0000 (12:17 +0100)
commitd599f571b3b42df1a4643531e27a262260296b86
tree9d82687fbffd77b36987dfa160420c6a37410e5d
parent9716818d615a1472279436cb7d5dfed136f41ca9
btrfs: send: make use of -fms-extensions for defining struct fs_path

The newly introduced -fms-extensions compiler flag allows defining
struct fs_path in such a way that inline_buf becomes a proper array
with a size known to the compiler.

This also makes the problem fixed by commit 8aec9dbf2db2 ("btrfs: send:
fix -Wflex-array-member-not-at-end warning in struct send_ctx") go away.
Whether cur_inode_path should be put back to its original place in
struct send_ctx I don't know, but at least the comment no longer
applies.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: David Sterba <dsterba@suse.com>
Link: https://patch.msgid.link/20251020142228.1819871-3-linux@rasmusvillemoes.dk
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nicolas Schier <nsc@kernel.org>
fs/btrfs/send.c