Skip to content

Commit

Permalink
iomap: move internal declarations into fs/iomap/
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
  • Loading branch information
djwong committed Jul 17, 2019
1 parent cb7181f commit 5d90730
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 19 deletions.
1 change: 0 additions & 1 deletion fs/dax.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 0 additions & 10 deletions fs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 0 additions & 2 deletions fs/iomap/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions fs/iomap/fiemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions fs/iomap/seek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions fs/iomap/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <linux/iomap.h>
#include <linux/swap.h>

#include "../internal.h"

/* Swapfile activation */

struct iomap_swapfile_info {
Expand Down
10 changes: 10 additions & 0 deletions include/linux/iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5d90730

Please sign in to comment.