diff options
author | David Howells <dhowells@redhat.com> | 2024-01-05 15:57:14 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2024-01-05 16:20:34 +0100 |
commit | 0e4d464cda4c5996402343d4c9e2b6ceec716f93 (patch) | |
tree | eba6519d42fcee76e04b5cb1ad2380e3e3db014b /fs | |
parent | netfs: Fix proc/fs/fscache symlink to point to "netfs" not "../netfs" (diff) | |
download | linux-0e4d464cda4c5996402343d4c9e2b6ceec716f93.tar.xz linux-0e4d464cda4c5996402343d4c9e2b6ceec716f93.zip |
netfs: Mark netfs_unbuffered_write_iter_locked() static
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
Diffstat (limited to 'fs')
-rw-r--r-- | fs/netfs/direct_write.c | 4 | ||||
-rw-r--r-- | fs/netfs/internal.h | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/fs/netfs/direct_write.c b/fs/netfs/direct_write.c index aad05f2349a4..b9cbfd6a8a01 100644 --- a/fs/netfs/direct_write.c +++ b/fs/netfs/direct_write.c @@ -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; diff --git a/fs/netfs/internal.h b/fs/netfs/internal.h index d2d63120ac60..a6dfc8888377 100644 --- a/fs/netfs/internal.h +++ b/fs/netfs/internal.h @@ -27,12 +27,6 @@ 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 */ int netfs_begin_read(struct netfs_io_request *rreq, bool sync); |