diff options
| author | Arnd Bergmann <[email protected]> | 2025-06-10 09:24:04 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-06-12 03:21:30 +0000 |
| commit | e82b3a63a9a91cc5c585efb3e28f32100f24e3e1 (patch) | |
| tree | d39c501123601ef9c883b6973ad3c041b3f00a36 /rust/helpers/vmalloc.c | |
| parent | bcachefs: Don't pass trans to fsck_err() in gc_accounting_done (diff) | |
| download | kernel-e82b3a63a9a91cc5c585efb3e28f32100f24e3e1.tar.gz kernel-e82b3a63a9a91cc5c585efb3e28f32100f24e3e1.zip | |
bcachefs: ioctl: avoid stack overflow warning
Multiple ioctl handlers individually use a lot of stack space, and clang chooses
to inline them into the bch2_fs_ioctl() function, blowing through the warning
limit:
fs/bcachefs/chardev.c:655:6: error: stack frame size (1032) exceeds limit (1024) in 'bch2_fs_ioctl' [-Werror,-Wframe-larger-than]
655 | long bch2_fs_ioctl(struct bch_fs *c, unsigned cmd, void __user *arg)
By marking the largest two of them as noinline_for_stack, no indidual code path
ends up using this much, which avoids the warning and reduces the possible
total stack usage in the ioctl handler.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
