]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bcachefs: uninline fallocate functions
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Jun 2024 18:37:46 +0000 (14:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:11 +0000 (19:00 -0400)
better stack traces

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c

index ef20b64033e09953bea9160ec8aeed8434058f79..ec7901265da56cc270cc9e18287b87d235fbb4af 100644 (file)
@@ -508,7 +508,7 @@ static int inode_update_times_fn(struct btree_trans *trans,
        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;
        u64 end         = offset + len;
@@ -547,7 +547,7 @@ err:
        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,
                                   bool insert)
 {
@@ -583,7 +583,7 @@ static long bchfs_fcollapse_finsert(struct bch_inode_info *inode,
        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)
 {
        struct bch_fs *c = inode->v.i_sb->s_fs_info;
@@ -704,7 +704,7 @@ bkey_err:
        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)
 {
        struct bch_fs *c = inode->v.i_sb->s_fs_info;