diff options
author | David Howells <dhowells@redhat.com> | 2022-03-07 22:57:24 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2022-03-18 10:29:05 +0100 |
commit | 3be01750d7ac5803ad6fa76801d4d80b3814229f (patch) | |
tree | 8ae577711d44157f878534884ed708ceb0c30ad4 | |
parent | netfs: Prepare to split read_helper.c (diff) | |
download | linux-3be01750d7ac5803ad6fa76801d4d80b3814229f.tar.xz linux-3be01750d7ac5803ad6fa76801d4d80b3814229f.zip |
netfs: Rename read_helper.c to io.c
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/ # v2
Link: https://lore.kernel.org/r/164692918076.2099075.8120961172717347610.stgit@warthog.procyon.org.uk/ # v3
-rw-r--r-- | Documentation/filesystems/netfs_library.rst | 3 | ||||
-rw-r--r-- | fs/netfs/Makefile | 4 | ||||
-rw-r--r-- | fs/netfs/internal.h | 14 | ||||
-rw-r--r-- | fs/netfs/io.c (renamed from fs/netfs/read_helper.c) | 0 |
4 files changed, 11 insertions, 10 deletions
diff --git a/Documentation/filesystems/netfs_library.rst b/Documentation/filesystems/netfs_library.rst index 9c8bc5666b46..69f00179fdfe 100644 --- a/Documentation/filesystems/netfs_library.rst +++ b/Documentation/filesystems/netfs_library.rst @@ -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 diff --git a/fs/netfs/Makefile b/fs/netfs/Makefile index 939fd00a1fc9..51ece4f7bc77 100644 --- a/fs/netfs/Makefile +++ b/fs/netfs/Makefile @@ -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 diff --git a/fs/netfs/internal.h b/fs/netfs/internal.h index 7bf94a3beb98..05c4b2fe1965 100644 --- a/fs/netfs/internal.h +++ b/fs/netfs/internal.h @@ -21,6 +21,13 @@ 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 diff --git a/fs/netfs/read_helper.c b/fs/netfs/io.c index 80a106b46051..80a106b46051 100644 --- a/fs/netfs/read_helper.c +++ b/fs/netfs/io.c |