Commit 6f9fae2f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Eric Biggers
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20260128152630.627409-5-hch@lst.de


Signed-off-by: default avatarEric Biggers <ebiggers@kernel.org>
parent fb266164
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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