diff mbox series

[1/9] iomap: start moving code to fs/iomap/

Message ID 156321356685.148361.4004787941003993925.stgit@magnolia (mailing list archive)
State New, archived
Headers show
Series iomap: regroup code by functional area | expand

Commit Message

Darrick J. Wong July 15, 2019, 5:59 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

Create the build infrastructure we need to start migrating iomap code to
fs/iomap/ from fs/iomap.c.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 MAINTAINERS       |    1 +
 fs/Makefile       |    1 +
 fs/iomap/Makefile |    7 +++++++
 3 files changed, 9 insertions(+)
 create mode 100644 fs/iomap/Makefile

Comments

Christoph Hellwig July 17, 2019, 4:59 a.m. UTC | #1
On Mon, Jul 15, 2019 at 10:59:26AM -0700, Darrick J. Wong wrote:
> @@ -0,0 +1,7 @@
> +# SPDX-License-Identifier: GPL-2.0-or-newer
> +#
> +# Copyright (c) 2019 Oracle.
> +# All Rights Reserved.
> +#
> +
> +ccflags-y += -I $(srctree)/$(src)/..

Is this for the fs/internal.h include?  Can't we just include that
using #include "../internal.h" ?
Darrick J. Wong July 17, 2019, 5:26 a.m. UTC | #2
On Tue, Jul 16, 2019 at 09:59:01PM -0700, Christoph Hellwig wrote:
> On Mon, Jul 15, 2019 at 10:59:26AM -0700, Darrick J. Wong wrote:
> > @@ -0,0 +1,7 @@
> > +# SPDX-License-Identifier: GPL-2.0-or-newer
> > +#
> > +# Copyright (c) 2019 Oracle.
> > +# All Rights Reserved.
> > +#
> > +
> > +ccflags-y += -I $(srctree)/$(src)/..
> 
> Is this for the fs/internal.h include?  Can't we just include that
> using #include "../internal.h" ?

Er... yes, it would seem so.

--D
diff mbox series

Patch

diff --git a/MAINTAINERS b/MAINTAINERS
index f5533d1bda2e..1086ac7b0f05 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -8362,6 +8362,7 @@  L:	linux-fsdevel@vger.kernel.org
 T:	git git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git
 S:	Supported
 F:	fs/iomap.c
+F:	fs/iomap/
 F:	include/linux/iomap.h
 
 IOMMU DRIVERS
diff --git a/fs/Makefile b/fs/Makefile
index c9aea23aba56..8e61bdf9f330 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -53,6 +53,7 @@  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
new file mode 100644
index 000000000000..b778a05acac3
--- /dev/null
+++ b/fs/iomap/Makefile
@@ -0,0 +1,7 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-newer
+#
+# Copyright (c) 2019 Oracle.
+# All Rights Reserved.
+#
+
+ccflags-y += -I $(srctree)/$(src)/..