Skip to content

Commit 0e4d464

Browse files
committed
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
1 parent 43833f2 commit 0e4d464

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

fs/netfs/direct_write.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ static void netfs_cleanup_dio_write(struct netfs_io_request *wreq)
2727
* Perform an unbuffered write where we may have to do an RMW operation on an
2828
* encrypted file. This can also be used for direct I/O writes.
2929
*/
30-
ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter,
31-
struct netfs_group *netfs_group)
30+
static ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter,
31+
struct netfs_group *netfs_group)
3232
{
3333
struct netfs_io_request *wreq;
3434
unsigned long long start = iocb->ki_pos;

fs/netfs/internal.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ void netfs_rreq_unlock_folios(struct netfs_io_request *rreq);
2626
int netfs_prefetch_for_write(struct file *file, struct folio *folio,
2727
size_t offset, size_t len);
2828

29-
/*
30-
* direct_write.c
31-
*/
32-
ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter,
33-
struct netfs_group *netfs_group);
34-
3529
/*
3630
* io.c
3731
*/

0 commit comments

Comments
 (0)