From: Darrick J. Wong Date: Mon, 15 Jul 2019 15:51:00 +0000 (-0700) Subject: iomap: move the main iteration code into a separate file X-Git-Tag: v5.3-rc1~28^2~1 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=cb7181ff4b1ca1e4a9dbea8a3982142ce4ed73fd;p=linux.git iomap: move the main iteration code into a separate file Move the main iteration code into a separate file so that we can group related functions in a single file instead of having a single enormous source file. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/fs/Makefile b/fs/Makefile index 8e61bdf9f330..d60089fd689b 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -52,7 +52,6 @@ obj-$(CONFIG_COREDUMP) += coredump.o obj-$(CONFIG_SYSCTL) += drop_caches.o obj-$(CONFIG_FHANDLE) += fhandle.o -obj-$(CONFIG_FS_IOMAP) += iomap.o obj-y += iomap/ obj-y += quota/ diff --git a/fs/iomap/Makefile b/fs/iomap/Makefile index 19fd672cd486..2d165388d952 100644 --- a/fs/iomap/Makefile +++ b/fs/iomap/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_FS_IOMAP) += iomap.o iomap-y += \ + apply.o \ buffered-io.o \ direct-io.o \ fiemap.o \ diff --git a/fs/iomap.c b/fs/iomap/apply.c similarity index 85% rename from fs/iomap.c rename to fs/iomap/apply.c index 88a3144351a9..9f956cf23867 100644 --- a/fs/iomap.c +++ b/fs/iomap/apply.c @@ -7,23 +7,8 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "internal.h" +#include "../internal.h" /* * Execute a iomap write on a segment of the mapping that spans a