#include "xfs.h"
#include "xfs_shared.h"
#include "xfs_format.h"
#include "xfs_log_format.h"
#include "xfs_trans_resv.h"
#include "xfs_mount.h"
#include "xfs_inode.h"
#include "xfs_trans.h"
#include "xfs_iomap.h"
#include "xfs_trace.h"
#include "xfs_bmap.h"
#include "xfs_bmap_util.h"
#include "xfs_reflink.h"
#include "xfs_errortag.h"
#include "xfs_error.h"
struct xfs_writepage_ctx { … };
static inline struct xfs_writepage_ctx *
XFS_WPC(struct iomap_writepage_ctx *ctx)
{ … }
static inline bool xfs_ioend_is_append(struct iomap_ioend *ioend)
{ … }
int
xfs_setfilesize(
struct xfs_inode *ip,
xfs_off_t offset,
size_t size)
{ … }
STATIC void
xfs_end_ioend(
struct iomap_ioend *ioend)
{ … }
void
xfs_end_io(
struct work_struct *work)
{ … }
STATIC void
xfs_end_bio(
struct bio *bio)
{ … }
static bool
xfs_imap_valid(
struct iomap_writepage_ctx *wpc,
struct xfs_inode *ip,
loff_t offset)
{ … }
static int
xfs_map_blocks(
struct iomap_writepage_ctx *wpc,
struct inode *inode,
loff_t offset,
unsigned int len)
{ … }
static int
xfs_prepare_ioend(
struct iomap_ioend *ioend,
int status)
{ … }
static void
xfs_discard_folio(
struct folio *folio,
loff_t pos)
{ … }
static const struct iomap_writeback_ops xfs_writeback_ops = …;
STATIC int
xfs_vm_writepages(
struct address_space *mapping,
struct writeback_control *wbc)
{ … }
STATIC int
xfs_dax_writepages(
struct address_space *mapping,
struct writeback_control *wbc)
{ … }
STATIC sector_t
xfs_vm_bmap(
struct address_space *mapping,
sector_t block)
{ … }
STATIC int
xfs_vm_read_folio(
struct file *unused,
struct folio *folio)
{ … }
STATIC void
xfs_vm_readahead(
struct readahead_control *rac)
{ … }
static int
xfs_iomap_swapfile_activate(
struct swap_info_struct *sis,
struct file *swap_file,
sector_t *span)
{ … }
const struct address_space_operations xfs_address_space_operations = …;
const struct address_space_operations xfs_dax_aops = …;