Skip to content

Commit 02ea8dd

Browse files
committed
Ignore too large stack in case of dsl_deadlist_merge
In the case of a regular compilation, the compiler raises a warning for a dsl_deadlist_merge function. However, in debug build this can generate an error. For this single function, let's ignore the limit of stack size. Signed-off-by: Mariusz Zaborski <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc.
1 parent d816bc5 commit 02ea8dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module/zfs/dsl_deadlist.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,8 @@ dsl_deadlist_insert_cb(void *arg, const blkptr_t *bp, boolean_t bp_freed,
852852
return (0);
853853
}
854854

855+
#pragma GCC diagnostic push
856+
#pragma GCC diagnostic ignored "-Wframe-larger-than="
855857
/*
856858
* Merge the deadlist pointed to by 'obj' into dl. obj will be left as
857859
* an empty deadlist.
@@ -910,6 +912,7 @@ dsl_deadlist_merge(dsl_deadlist_t *dl, uint64_t obj, dmu_tx_t *tx)
910912
dmu_buf_rele(bonus, FTAG);
911913
mutex_exit(&dl->dl_lock);
912914
}
915+
#pragma GCC diagnostic pop
913916

914917
/*
915918
* Remove entries on dl that are born > mintxg, and put them on the bpobj.

0 commit comments

Comments
 (0)