diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-01-28 16:26:16 +0100 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-01-29 09:39:41 -0800 |
| commit | 6f9fae2f738c41c22ee90778ff8fc069de379472 (patch) | |
| tree | 32ba88c38946d88a29ac716fbcc49578036bf9c1 /fs | |
| parent | fb26616459098323eeda67b4f30786743191171b (diff) | |
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 <hch@lst.de>
Link: https://lore.kernel.org/r/20260128152630.627409-5-hch@lst.de
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/f2fs/compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
