netfs: Rename read_helper.c to io.c
authorDavid Howells <dhowells@redhat.com>
Mon, 7 Mar 2022 21:57:24 +0000 (21:57 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 18 Mar 2022 09:29:05 +0000 (09:29 +0000)
Rename the read_helper.c file to io.c before splitting out the buffered
read functions and some other bits.

Changes
=======
ver #2)
 - Rename read_helper.c before splitting.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com

Link: https://lore.kernel.org/r/164678216109.1200972.16567696909952495832.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164692918076.2099075.8120961172717347610.stgit@warthog.procyon.org.uk/
Documentation/filesystems/netfs_library.rst
fs/netfs/Makefile
fs/netfs/internal.h
fs/netfs/io.c [moved from fs/netfs/read_helper.c with 100% similarity]

index 9c8bc56..69f0017 100644 (file)
@@ -605,4 +605,5 @@ API Function Reference
 ======================
 
 .. kernel-doc:: include/linux/netfs.h
-.. kernel-doc:: fs/netfs/read_helper.c
+.. kernel-doc:: fs/netfs/buffered_read.c
+.. kernel-doc:: fs/netfs/io.c
index 939fd00..51ece4f 100644 (file)
@@ -1,8 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
 
 netfs-y := \
-       objects.o \
-       read_helper.o
+       io.o \
+       objects.o
 
 netfs-$(CONFIG_NETFS_STATS) += stats.o
 
index 7bf94a3..05c4b2f 100644 (file)
 void netfs_rreq_unlock_folios(struct netfs_io_request *rreq);
 
 /*
+ * io.c
+ */
+extern unsigned int netfs_debug;
+
+int netfs_begin_read(struct netfs_io_request *rreq, bool sync);
+
+/*
  * objects.c
  */
 struct netfs_io_request *netfs_alloc_request(struct address_space *mapping,
@@ -40,13 +47,6 @@ static inline void netfs_see_request(struct netfs_io_request *rreq,
 }
 
 /*
- * read_helper.c
- */
-extern unsigned int netfs_debug;
-
-int netfs_begin_read(struct netfs_io_request *rreq, bool sync);
-
-/*
  * stats.c
  */
 #ifdef CONFIG_NETFS_STATS
similarity index 100%
rename from fs/netfs/read_helper.c
rename to fs/netfs/io.c