mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
Commit 07d67f3e9083 ("exfat: add iomap buffered I/O support")
converted exfat buffered I/O to iomap, but did not add a
.swap_activate handler to the address_space_operations.
swapon(2) on an exfat swapfile then fails with EINVAL, which causes
LTP swap tests to fail.
Add exfat_iomap_swap_activate() and hook it into exfat_aops so exfat
uses iomap_swapfile_activate() for swapfile activation.
Fixes: 614f71ca1bdf ("exfat: add iomap buffered I/O support")
Closes: https://lore.kernel.org/all/20260603110212.3020276-1-japo@linux.ibm.com/
Signed-off-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
19 lines
592 B
C
19 lines
592 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2026 Namjae Jeon <linkinjeon@kernel.org>
|
|
*/
|
|
|
|
#ifndef _LINUX_EXFAT_IOMAP_H
|
|
#define _LINUX_EXFAT_IOMAP_H
|
|
|
|
extern const struct iomap_dio_ops exfat_write_dio_ops;
|
|
extern const struct iomap_ops exfat_iomap_ops;
|
|
extern const struct iomap_ops exfat_write_iomap_ops;
|
|
extern const struct iomap_writeback_ops exfat_writeback_ops;
|
|
extern const struct iomap_read_ops exfat_iomap_bio_read_ops;
|
|
|
|
int exfat_iomap_swap_activate(struct swap_info_struct *sis,
|
|
struct file *file, sector_t *span);
|
|
|
|
#endif /* _LINUX_EXFAT_IOMAP_H */
|