From: Christoph Hellwig Date: Wed, 28 Jan 2026 15:26:16 +0000 (+0100) Subject: f2fs: don't build the fsverity work handler for !CONFIG_FS_VERITY X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f9fae2f738c41c22ee90778ff8fc069de379472;p=thirdparty%2Fkernel%2Flinux.git f2fs: don't build the fsverity work handler for !CONFIG_FS_VERITY Use IS_ENABLED to disable this code, leading to a slight size reduction: text data bss dec hex filename 25709 2412 24 28145 6df1 fs/f2fs/compress.o.old 25198 2252 24 27474 6b52 fs/f2fs/compress.o Signed-off-by: Christoph Hellwig Link: https://lore.kernel.org/r/20260128152630.627409-5-hch@lst.de Signed-off-by: Eric Biggers --- diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 7b68bf22989d..40a62f1dee4d 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1833,7 +1833,7 @@ void f2fs_decompress_end_io(struct decompress_io_ctx *dic, bool failed, { int i; - if (!failed && dic->need_verity) { + if (IS_ENABLED(CONFIG_FS_VERITY) && !failed && dic->need_verity) { /* * Note that to avoid deadlocks, the verity work can't be done * on the decompression workqueue. This is because verifying