aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/reflink.h
diff options
context:
space:
mode:
authorGravatar David Sterba <dsterba@suse.com> 2024-01-27 00:53:06 +0100
committerGravatar David Sterba <dsterba@suse.com> 2024-03-04 16:24:49 +0100
commit22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (patch)
tree2a9ebfae8d720613175db83b37f2372875ee223d /fs/btrfs/reflink.h
parentbtrfs: hoist fs_info out of loops in end_bbio_data_write and end_bbio_data_read (diff)
downloadlinux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.gz
linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.bz2
linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.zip
btrfs: add forward declarations and headers, part 1
Do a cleanup in the short headers: - add forward declarations for types referenced by pointers - add includes when types need them This fixes potential compilation problems if the headers are reordered or the missing includes are not provided indirectly. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reflink.h')
-rw-r--r--fs/btrfs/reflink.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/reflink.h b/fs/btrfs/reflink.h
index ecb309b4dad0..1e291f7d85c4 100644
--- a/fs/btrfs/reflink.h
+++ b/fs/btrfs/reflink.h
@@ -3,7 +3,9 @@
#ifndef BTRFS_REFLINK_H
#define BTRFS_REFLINK_H
-#include <linux/fs.h>
+#include <linux/types.h>
+
+struct file;
loff_t btrfs_remap_file_range(struct file *file_in, loff_t pos_in,
struct file *file_out, loff_t pos_out,