[PATCH v3 5/6] SUNRPC: Export xdr_buf_pagecount()

From
Anna Schumaker <anna@kernel.org>
Date
2022-07-15 18:44:42
Reply to
Anna Schumaker, 2022-07-15
From: Anna Schumaker <redacted>

The NFS server will need this for iterating over pages in a READ_PLUS
reply

Signed-off-by: Anna Schumaker <redacted>
---
 net/sunrpc/xdr.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
index 88b28656a05d..ea734b14af0f 100644
--- a/net/sunrpc/xdr.c
+++ b/net/sunrpc/xdr.c
@@ -139,6 +139,7 @@ size_t xdr_buf_pagecount(const struct xdr_buf *buf)
 		return 0;
 	return (buf->page_base + buf->page_len + PAGE_SIZE - 1) >> PAGE_SHIFT;
 }
+EXPORT_SYMBOL_GPL(xdr_buf_pagecount);
 
 char *xdr_buf_nth_page_address(const struct xdr_buf *buf, unsigned int n,
 			       unsigned int *len)
-- 
2.37.1
Thread (29 messages) 29 messages, 6 authors, last reply 2022-08-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help