From f9523c31028903e6f5fd11087b1c233a7d70d9b3 Mon Sep 17 00:00:00 2001 From: David Howells Date: Tue, 1 Mar 2022 15:29:50 +0000 Subject: [PATCH] netfs: Rename rename read_helper.c to io.c The read_helper.c file now only contains I/O functions, so rename the file to io.c. It will eventually get write-side I/O functions also. Changes ======= ver #2) - Change kdoc reference to file[1]. Signed-off-by: David Howells cc: linux-cachefs@redhat.com Link: https://lore.kernel.org/r/20220303202811.6a1d53a1@canb.auug.org.au/ [1] --- Documentation/filesystems/netfs_library.rst | 2 +- fs/netfs/Makefile | 4 ++-- fs/netfs/internal.h | 10 +++++----- fs/netfs/{read_helper.c => io.c} | 0 4 files changed, 8 insertions(+), 8 deletions(-) rename fs/netfs/{read_helper.c => io.c} (100%) diff --git a/Documentation/filesystems/netfs_library.rst b/Documentation/filesystems/netfs_library.rst index e7776be3332a53..9baa455113afe0 100644 --- a/Documentation/filesystems/netfs_library.rst +++ b/Documentation/filesystems/netfs_library.rst @@ -605,4 +605,4 @@ API Function Reference .. kernel-doc:: include/linux/netfs.h .. kernel-doc:: fs/netfs/buffered_read.c -.. kernel-doc:: fs/netfs/read_helper.c +.. kernel-doc:: fs/netfs/io.c diff --git a/fs/netfs/Makefile b/fs/netfs/Makefile index 029657b6db63e5..f684c0cd1ec5e6 100644 --- a/fs/netfs/Makefile +++ b/fs/netfs/Makefile @@ -2,9 +2,9 @@ netfs-y := \ buffered_read.o \ + io.o \ main.o \ - objects.o \ - read_helper.o + objects.o netfs-$(CONFIG_NETFS_STATS) += stats.o diff --git a/fs/netfs/internal.h b/fs/netfs/internal.h index f9dd64521fe66a..e2c80b10bf4d08 100644 --- a/fs/netfs/internal.h +++ b/fs/netfs/internal.h @@ -20,6 +20,11 @@ */ void netfs_rreq_unlock_folios(struct netfs_io_request *rreq); +/* + * io.c + */ +int netfs_begin_read(struct netfs_io_request *rreq, bool sync); + /* * main.c */ @@ -44,11 +49,6 @@ static inline void netfs_see_request(struct netfs_io_request *rreq, trace_netfs_rreq_ref(rreq->debug_id, refcount_read(&rreq->ref), what); } -/* - * read_helper.c - */ -int netfs_begin_read(struct netfs_io_request *rreq, bool sync); - /* * stats.c */ diff --git a/fs/netfs/read_helper.c b/fs/netfs/io.c similarity index 100% rename from fs/netfs/read_helper.c rename to fs/netfs/io.c