]> git.hungrycats.org Git - linux/commitdiff
fs/btrfs: expose more symbols for gdb
authorZygo Blaxell <zblaxell@serenity.furryterror.org>
Thu, 5 Mar 2015 03:22:28 +0000 (22:22 -0500)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 7 Mar 2015 22:15:56 +0000 (17:15 -0500)
(cherry picked from commit 671c70551656864a94bc6dbadef3add03a782a06)

fs/btrfs/ioctl.c

index 4399f0c3a4ce1c6a08cfa81f2720f27a7138eea7..2c6c5f77b289ef02b1e1d74b89b612bdabf050a5 100644 (file)
@@ -86,7 +86,7 @@ struct btrfs_ioctl_received_subvol_args_32 {
 #endif
 
 
-static int btrfs_clone(struct inode *src, struct inode *inode,
+int btrfs_clone(struct inode *src, struct inode *inode,
                       u64 off, u64 olen, u64 olen_aligned, u64 destoff);
 
 /* Mask out flags that are inappropriate for the given type of inode. */
@@ -2775,7 +2775,7 @@ out:
        return ret;
 }
 
-static struct page *extent_same_get_page(struct inode *inode, u64 off)
+struct page *extent_same_get_page(struct inode *inode, u64 off)
 {
        struct page *page;
        pgoff_t index;
@@ -2803,7 +2803,7 @@ static struct page *extent_same_get_page(struct inode *inode, u64 off)
        return page;
 }
 
-static inline void lock_extent_range(struct inode *inode, u64 off, u64 len)
+void lock_extent_range(struct inode *inode, u64 off, u64 len)
 {
        /* do any pending delalloc/csum calc on src, one way or
           another, and lock file content */
@@ -2828,7 +2828,7 @@ static inline void lock_extent_range(struct inode *inode, u64 off, u64 len)
        }
 }
 
-static void btrfs_double_unlock(struct inode *inode1, u64 loff1,
+void btrfs_double_unlock(struct inode *inode1, u64 loff1,
                                struct inode *inode2, u64 loff2, u64 len)
 {
        unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1);
@@ -2838,7 +2838,7 @@ static void btrfs_double_unlock(struct inode *inode1, u64 loff1,
        mutex_unlock(&inode2->i_mutex);
 }
 
-static void btrfs_double_lock(struct inode *inode1, u64 loff1,
+void btrfs_double_lock(struct inode *inode1, u64 loff1,
                              struct inode *inode2, u64 loff2, u64 len)
 {
        if (inode1 < inode2) {
@@ -2854,7 +2854,7 @@ static void btrfs_double_lock(struct inode *inode1, u64 loff1,
        }
 }
 
-static int btrfs_cmp_data(struct inode *src, u64 loff, struct inode *dst,
+int btrfs_cmp_data(struct inode *src, u64 loff, struct inode *dst,
                          u64 dst_loff, u64 len)
 {
        int ret = 0;
@@ -2899,7 +2899,7 @@ static int btrfs_cmp_data(struct inode *src, u64 loff, struct inode *dst,
        return ret;
 }
 
-static int extent_same_check_offsets(struct inode *inode, u64 off, u64 len)
+int extent_same_check_offsets(struct inode *inode, u64 off, u64 len)
 {
        u64 bs = BTRFS_I(inode)->root->fs_info->sb->s_blocksize;
 
@@ -2912,7 +2912,7 @@ static int extent_same_check_offsets(struct inode *inode, u64 off, u64 len)
        return 0;
 }
 
-static int btrfs_extent_same(struct inode *src, u64 loff, u64 len,
+int btrfs_extent_same(struct inode *src, u64 loff, u64 len,
                             struct inode *dst, u64 dst_loff)
 {
        int ret;
@@ -2954,7 +2954,7 @@ out_unlock:
 
 #define BTRFS_MAX_DEDUPE_LEN   (16 * 1024 * 1024)
 
-static long btrfs_ioctl_file_extent_same(struct file *file,
+long btrfs_ioctl_file_extent_same(struct file *file,
                        struct btrfs_ioctl_same_args __user *argp)
 {
        struct btrfs_ioctl_same_args *same;
@@ -3126,7 +3126,7 @@ out:
        return ret;
 }
 
-static void clone_update_extent_map(struct inode *inode,
+void clone_update_extent_map(struct inode *inode,
                                    const struct btrfs_trans_handle *trans,
                                    const struct btrfs_path *path,
                                    const u64 hole_offset,
@@ -3194,7 +3194,7 @@ static void clone_update_extent_map(struct inode *inode,
  *               identical values here
  * @destoff: Offset within @inode to start clone
  */
-static int btrfs_clone(struct inode *src, struct inode *inode,
+int btrfs_clone(struct inode *src, struct inode *inode,
                       const u64 off, const u64 olen, const u64 olen_aligned,
                       const u64 destoff)
 {
@@ -3565,7 +3565,7 @@ out:
        return ret;
 }
 
-static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
+noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
                                       u64 off, u64 olen, u64 destoff)
 {
        struct inode *inode = file_inode(file);
@@ -3725,7 +3725,7 @@ out_drop_write:
        return ret;
 }
 
-static long btrfs_ioctl_clone_range(struct file *file, void __user *argp)
+long btrfs_ioctl_clone_range(struct file *file, void __user *argp)
 {
        struct btrfs_ioctl_clone_range_args args;
 
@@ -3741,7 +3741,7 @@ static long btrfs_ioctl_clone_range(struct file *file, void __user *argp)
  * basically own the machine, and have a very in depth understanding
  * of all the possible deadlocks and enospc problems.
  */
-static long btrfs_ioctl_trans_start(struct file *file)
+long btrfs_ioctl_trans_start(struct file *file)
 {
        struct inode *inode = file_inode(file);
        struct btrfs_root *root = BTRFS_I(inode)->root;