Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

SUNRPC: Introduce xdr_set_scratch_folio()

This will replace xdr_set_scratch_page() when we switch pages to folios.

Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>

+13
+13
include/linux/sunrpc/xdr.h
··· 301 301 } 302 302 303 303 /** 304 + * xdr_set_scratch_folio - Attach a scratch buffer for decoding data 305 + * @xdr: pointer to xdr_stream struct 306 + * @page: an anonymous folio 307 + * 308 + * See xdr_set_scratch_buffer(). 309 + */ 310 + static inline void 311 + xdr_set_scratch_folio(struct xdr_stream *xdr, struct folio *folio) 312 + { 313 + xdr_set_scratch_buffer(xdr, folio_address(folio), folio_size(folio)); 314 + } 315 + 316 + /** 304 317 * xdr_reset_scratch_buffer - Clear scratch buffer information 305 318 * @xdr: pointer to xdr_stream struct 306 319 *