@@ -26,7 +26,7 @@
#include <linux/mmu_notifier.h>
#include <linux/iomap.h>
#include <asm/pgalloc.h>
-#include "internal.h"
+#include "iomap/iomap_internal.h"
#define CREATE_TRACE_POINTS
#include <trace/events/fs_dax.h>
@@ -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);
@@ -8,7 +8,7 @@
#include <linux/fs.h>
#include <linux/iomap.h>
-#include "internal.h"
+#include "iomap_internal.h"
struct fiemap_ctx {
struct fiemap_extent_info *fi;
@@ -9,7 +9,6 @@
#include <linux/iomap.h>
#include <linux/blkdev.h>
-#include "internal.h"
#include "iomap_internal.h"
/*
@@ -6,6 +6,16 @@
#ifndef _IOMAP_INTERNAL_H_
#define _IOMAP_INTERNAL_H_
+/*
+ * 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);
+
sector_t iomap_sector(struct iomap *iomap, loff_t pos);
void iomap_set_range_uptodate(struct page *page, unsigned off, unsigned len);
struct iomap_page *iomap_page_create(struct inode *inode, struct page *page);
@@ -9,7 +9,6 @@
#include <linux/iomap.h>
#include <linux/migrate.h>
-#include "internal.h"
#include "iomap_internal.h"
int
@@ -10,7 +10,7 @@
#include <linux/memcontrol.h>
#include <linux/blkdev.h>
-#include "internal.h"
+#include "iomap_internal.h"
struct iomap_page *
iomap_page_create(struct inode *inode, struct page *page)
@@ -11,7 +11,6 @@
#include <linux/pagemap.h>
#include <linux/blkdev.h>
-#include "internal.h"
#include "iomap_internal.h"
/*
@@ -10,7 +10,7 @@
#include <linux/pagemap.h>
#include <linux/pagevec.h>
-#include "internal.h"
+#include "iomap_internal.h"
/*
* Seek for SEEK_DATA / SEEK_HOLE within @page, starting at @lastoff.
@@ -9,7 +9,7 @@
#include <linux/iomap.h>
#include <linux/swap.h>
-#include "internal.h"
+#include "iomap_internal.h"
/* Swapfile activation */