Skip to content

Commit

Permalink
netfs: Rename read_helper.c to io.c
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dhowells committed Mar 18, 2022
1 parent 93345c3 commit 3be0175
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Documentation/filesystems/netfs_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions fs/netfs/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
14 changes: 7 additions & 7 deletions fs/netfs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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
*/
Expand All @@ -39,13 +46,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
*/
extern unsigned int netfs_debug;

int netfs_begin_read(struct netfs_io_request *rreq, bool sync);

/*
* stats.c
*/
Expand Down
File renamed without changes.

0 comments on commit 3be0175

Please sign in to comment.