summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-24 16:23:59 +0200
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:07:29 +0200
commit3a2f8c07e1d60739eb6b90ffba41bd1d0de33fc2 (patch)
treedd34fa8ddbd37a0450fdb6b9467693c27479d60a /fs/btrfs/inode.c
parentbtrfs: Remove delayed_iput member from btrfs_delalloc_work (diff)
downloadlinux-3a2f8c07e1d60739eb6b90ffba41bd1d0de33fc2.tar.xz
linux-3a2f8c07e1d60739eb6b90ffba41bd1d0de33fc2.zip
btrfs: Unexport btrfs_alloc_delalloc_work
It's used only in inode.c so makes no sense to have it exported. Also move the definition of btrfs_delalloc_work to inode.c since it's used only this file. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/inode.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 4e10bb1f300e..29374d31f1de 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -10146,6 +10146,13 @@ static int btrfs_rename2(struct inode *old_dir, struct dentry *old_dentry,
return btrfs_rename(old_dir, old_dentry, new_dir, new_dentry, flags);
}
+struct btrfs_delalloc_work {
+ struct inode *inode;
+ struct completion completion;
+ struct list_head list;
+ struct btrfs_work work;
+};
+
static void btrfs_run_delalloc_work(struct btrfs_work *work)
{
struct btrfs_delalloc_work *delalloc_work;
@@ -10163,7 +10170,7 @@ static void btrfs_run_delalloc_work(struct btrfs_work *work)
complete(&delalloc_work->completion);
}
-struct btrfs_delalloc_work *btrfs_alloc_delalloc_work(struct inode *inode)
+static struct btrfs_delalloc_work *btrfs_alloc_delalloc_work(struct inode *inode)
{
struct btrfs_delalloc_work *work;