aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-03 10:01:48 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commit98ed51747b63435b9987ef12692a75c223818bbe (patch)
treef7f983d4754b267d8c7ed279a68e2d0ca970784c /fs/btrfs/file.c
parentf9ef6604ace23a6fcd698e08b58a883d6009157b (diff)
Btrfs: Force inlining off in a few places to save stack usage
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 71dc2d33b6c6..c9ebd4fe8f7e 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -80,7 +80,7 @@ static void btrfs_drop_pages(struct page **pages, size_t num_pages)
80 } 80 }
81} 81}
82 82
83static int insert_inline_extent(struct btrfs_trans_handle *trans, 83static int noinline insert_inline_extent(struct btrfs_trans_handle *trans,
84 struct btrfs_root *root, struct inode *inode, 84 struct btrfs_root *root, struct inode *inode,
85 u64 offset, size_t size, 85 u64 offset, size_t size,
86 struct page **pages, size_t page_offset, 86 struct page **pages, size_t page_offset,
@@ -221,7 +221,7 @@ fail:
221 return err; 221 return err;
222} 222}
223 223
224static int dirty_and_release_pages(struct btrfs_trans_handle *trans, 224static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
225 struct btrfs_root *root, 225 struct btrfs_root *root,
226 struct file *file, 226 struct file *file,
227 struct page **pages, 227 struct page **pages,
@@ -653,14 +653,10 @@ out:
653/* 653/*
654 * this gets pages into the page cache and locks them down 654 * this gets pages into the page cache and locks them down
655 */ 655 */
656static int prepare_pages(struct btrfs_root *root, 656static int prepare_pages(struct btrfs_root *root, struct file *file,
657 struct file *file, 657 struct page **pages, size_t num_pages,
658 struct page **pages, 658 loff_t pos, unsigned long first_index,
659 size_t num_pages, 659 unsigned long last_index, size_t write_bytes)
660 loff_t pos,
661 unsigned long first_index,
662 unsigned long last_index,
663 size_t write_bytes)
664{ 660{
665 int i; 661 int i;
666 unsigned long index = pos >> PAGE_CACHE_SHIFT; 662 unsigned long index = pos >> PAGE_CACHE_SHIFT;