Commit 8a3c8303 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: uninline fallocate functions

better stack traces
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 52fd0f96
...@@ -508,7 +508,7 @@ static int inode_update_times_fn(struct btree_trans *trans, ...@@ -508,7 +508,7 @@ static int inode_update_times_fn(struct btree_trans *trans,
return 0; return 0;
} }
static long bchfs_fpunch(struct bch_inode_info *inode, loff_t offset, loff_t len) static noinline long bchfs_fpunch(struct bch_inode_info *inode, loff_t offset, loff_t len)
{ {
struct bch_fs *c = inode->v.i_sb->s_fs_info; struct bch_fs *c = inode->v.i_sb->s_fs_info;
u64 end = offset + len; u64 end = offset + len;
...@@ -547,7 +547,7 @@ static long bchfs_fpunch(struct bch_inode_info *inode, loff_t offset, loff_t len ...@@ -547,7 +547,7 @@ static long bchfs_fpunch(struct bch_inode_info *inode, loff_t offset, loff_t len
return ret; return ret;
} }
static long bchfs_fcollapse_finsert(struct bch_inode_info *inode, static noinline long bchfs_fcollapse_finsert(struct bch_inode_info *inode,
loff_t offset, loff_t len, loff_t offset, loff_t len,
bool insert) bool insert)
{ {
...@@ -583,7 +583,7 @@ static long bchfs_fcollapse_finsert(struct bch_inode_info *inode, ...@@ -583,7 +583,7 @@ static long bchfs_fcollapse_finsert(struct bch_inode_info *inode,
return ret; return ret;
} }
static int __bchfs_fallocate(struct bch_inode_info *inode, int mode, static noinline int __bchfs_fallocate(struct bch_inode_info *inode, int mode,
u64 start_sector, u64 end_sector) u64 start_sector, u64 end_sector)
{ {
struct bch_fs *c = inode->v.i_sb->s_fs_info; struct bch_fs *c = inode->v.i_sb->s_fs_info;
...@@ -704,7 +704,7 @@ static int __bchfs_fallocate(struct bch_inode_info *inode, int mode, ...@@ -704,7 +704,7 @@ static int __bchfs_fallocate(struct bch_inode_info *inode, int mode,
return ret; return ret;
} }
static long bchfs_fallocate(struct bch_inode_info *inode, int mode, static noinline long bchfs_fallocate(struct bch_inode_info *inode, int mode,
loff_t offset, loff_t len) loff_t offset, loff_t len)
{ {
struct bch_fs *c = inode->v.i_sb->s_fs_info; struct bch_fs *c = inode->v.i_sb->s_fs_info;
......
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