Commit 0e378df1 authored by Chris Mason's avatar Chris Mason

Btrfs: cut down stack usage in btree_write_cache_pages

This adds noinline_for_stack to two helpers used by
btree_write_cache_pages.  It shaves us down from 424 bytes on the
stack to 280.
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent d4452bc5
...@@ -3393,7 +3393,8 @@ void wait_on_extent_buffer_writeback(struct extent_buffer *eb) ...@@ -3393,7 +3393,8 @@ void wait_on_extent_buffer_writeback(struct extent_buffer *eb)
TASK_UNINTERRUPTIBLE); TASK_UNINTERRUPTIBLE);
} }
static int lock_extent_buffer_for_io(struct extent_buffer *eb, static noinline_for_stack int
lock_extent_buffer_for_io(struct extent_buffer *eb,
struct btrfs_fs_info *fs_info, struct btrfs_fs_info *fs_info,
struct extent_page_data *epd) struct extent_page_data *epd)
{ {
...@@ -3500,7 +3501,7 @@ static void end_bio_extent_buffer_writepage(struct bio *bio, int err) ...@@ -3500,7 +3501,7 @@ static void end_bio_extent_buffer_writepage(struct bio *bio, int err)
bio_put(bio); bio_put(bio);
} }
static int write_one_eb(struct extent_buffer *eb, static noinline_for_stack int write_one_eb(struct extent_buffer *eb,
struct btrfs_fs_info *fs_info, struct btrfs_fs_info *fs_info,
struct writeback_control *wbc, struct writeback_control *wbc,
struct extent_page_data *epd) struct extent_page_data *epd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment