// SPDX-License-Identifier: GPL-2.0-only /* Read with PG_private_2 [DEPRECATED]. * * Copyright (C) 2024 Red Hat, Inc. All Rights Reserved. * Written by David Howells ([email protected]) */ #include <linux/export.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/pagemap.h> #include <linux/slab.h> #include <linux/task_io_accounting_ops.h> #include "internal.h" /* * [DEPRECATED] Mark page as requiring copy-to-cache using PG_private_2. The * third mark in the folio queue is used to indicate that this folio needs * writing. */ void netfs_pgpriv2_mark_copy_to_cache(struct netfs_io_subrequest *subreq, struct netfs_io_request *rreq, struct folio_queue *folioq, int slot) { … } /* * [DEPRECATED] Cancel PG_private_2 on all marked folios in the event of an * unrecoverable error. */ static void netfs_pgpriv2_cancel(struct folio_queue *folioq) { … } /* * [DEPRECATED] Copy a folio to the cache with PG_private_2 set. */ static int netfs_pgpriv2_copy_folio(struct netfs_io_request *wreq, struct folio *folio) { … } /* * [DEPRECATED] Go through the buffer and write any folios that are marked with * the third mark to the cache. */ void netfs_pgpriv2_write_to_the_cache(struct netfs_io_request *rreq) { … } /* * [DEPRECATED] Remove the PG_private_2 mark from any folios we've finished * copying. */ bool netfs_pgpriv2_unlock_copied_folios(struct netfs_io_request *wreq) { … }