netfs: Mark netfs_unbuffered_write_iter_locked() static
authorDavid Howells <dhowells@redhat.com>
Fri, 5 Jan 2024 14:57:14 +0000 (14:57 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 5 Jan 2024 15:20:34 +0000 (15:20 +0000)
Mark netfs_unbuffered_write_iter_locked() static as it's only called from
the file in which it is defined.

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

fs/netfs/direct_write.c
fs/netfs/internal.h

index aad05f2349a48277b2d332f06c8e53cb38307b00..b9cbfd6a8a01daddacea7086ca000a68a84f3458 100644 (file)
@@ -27,8 +27,8 @@ static void netfs_cleanup_dio_write(struct netfs_io_request *wreq)
  * Perform an unbuffered write where we may have to do an RMW operation on an
  * encrypted file.  This can also be used for direct I/O writes.
  */
-ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter,
-                                          struct netfs_group *netfs_group)
+static ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter,
+                                                 struct netfs_group *netfs_group)
 {
        struct netfs_io_request *wreq;
        unsigned long long start = iocb->ki_pos;
index d2d63120ac60ababa81df1696d1d3e1f863ac1dd..a6dfc88883779f11a25e50b86712780c57c1ff2a 100644 (file)
@@ -26,12 +26,6 @@ void netfs_rreq_unlock_folios(struct netfs_io_request *rreq);
 int netfs_prefetch_for_write(struct file *file, struct folio *folio,
                             size_t offset, size_t len);
 
-/*
- * direct_write.c
- */
-ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter,
-                                          struct netfs_group *netfs_group);
-
 /*
  * io.c
  */