iomap: move internal declarations into fs/iomap/
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 15 Jul 2019 15:51:01 +0000 (08:51 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 17 Jul 2019 14:21:02 +0000 (07:21 -0700)
Move internal function declarations out of fs/internal.h into
include/linux/iomap.h so that our transition is complete.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/dax.c
fs/internal.h
fs/iomap/apply.c
fs/iomap/fiemap.c
fs/iomap/seek.c
fs/iomap/swapfile.c
include/linux/iomap.h

index fe5e33810cd444b1dd40ee659aaa6de5bf43a568..cb53f9bd6fd702c2bc166988ffc4716743fb6122 100644 (file)
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -26,7 +26,6 @@
 #include <linux/mmu_notifier.h>
 #include <linux/iomap.h>
 #include <asm/pgalloc.h>
-#include "internal.h"
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/fs_dax.h>
index 2f3c3de51fad6eebbd68c1dc349a5171bf986b56..2b0bebd679045b208bc9804c497ab58178cd4063 100644 (file)
@@ -182,15 +182,5 @@ extern const struct dentry_operations ns_dentry_operations;
 extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd,
                    unsigned long arg);
 
-/*
- * iomap support:
- */
-typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len,
-               void *data, struct iomap *iomap);
-
-loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length,
-               unsigned flags, const struct iomap_ops *ops, void *data,
-               iomap_actor_t actor);
-
 /* direct-io.c: */
 int sb_init_dio_done_wq(struct super_block *sb);
index 9f956cf23867eb7a018784ec221ce41c264c6229..54c02aecf3cd848825b79a57b57e87e53a1f1e69 100644 (file)
@@ -8,8 +8,6 @@
 #include <linux/fs.h>
 #include <linux/iomap.h>
 
-#include "../internal.h"
-
 /*
  * Execute a iomap write on a segment of the mapping that spans a
  * contiguous range of pages that have identical block mapping state.
index 1fc88ec1584deb48a3a7f710c060f6424338ba96..f26fdd36e3832b22cbc06a2248b3105e880f20bd 100644 (file)
@@ -7,8 +7,6 @@
 #include <linux/fs.h>
 #include <linux/iomap.h>
 
-#include "../internal.h"
-
 struct fiemap_ctx {
        struct fiemap_extent_info *fi;
        struct iomap prev;
index 715442eb71aa895e615ff3b4bb10a4335352ede9..c04bad4b2b43f9fbdfc3a3788e36e8dff95ba241 100644 (file)
@@ -10,8 +10,6 @@
 #include <linux/pagemap.h>
 #include <linux/pagevec.h>
 
-#include "../internal.h"
-
 /*
  * Seek for SEEK_DATA / SEEK_HOLE within @page, starting at @lastoff.
  * Returns true if found and updates @lastoff to the offset in file.
index b79c336312631b48cf41cfe9632fc6ce646c01a7..152a230f668d47256f3f27933f757da7380a0c8a 100644 (file)
@@ -9,8 +9,6 @@
 #include <linux/iomap.h>
 #include <linux/swap.h>
 
-#include "../internal.h"
-
 /* Swapfile activation */
 
 struct iomap_swapfile_info {
index baa1e2d31f05e654434c812887172733bd94dcb0..bc499ceae39257e7389167775920291959885275 100644 (file)
@@ -122,6 +122,16 @@ struct iomap_ops {
                        ssize_t written, unsigned flags, struct iomap *iomap);
 };
 
+/*
+ * Main iomap iterator function.
+ */
+typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len,
+               void *data, struct iomap *iomap);
+
+loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length,
+               unsigned flags, const struct iomap_ops *ops, void *data,
+               iomap_actor_t actor);
+
 /*
  * Structure allocate for each page when block size < PAGE_SIZE to track
  * sub-page uptodate status and I/O completions.