Skip to content

Commit 339b5c0

Browse files
committed
zfs: use FOP_REMAP_CROSS_SB
See 71a0186 ("fs: introduce FOP_REMAP_CROSS_SB to relax same-sb checks for remap"). Fixes openzfs/zfs#15345. Signed-off-by: Ivan Shapovalov <[email protected]>
1 parent c3373c7 commit 339b5c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/zfs/os/linux/zfs/zpl_file.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,9 @@ const struct address_space_operations zpl_address_space_operations = {
10991099
};
11001100

11011101
const struct file_operations zpl_file_operations = {
1102+
#ifdef FOP_REMAP_CROSS_SB
1103+
.fop_flags = FOP_REMAP_CROSS_SB,
1104+
#endif
11021105
.open = zpl_open,
11031106
.release = zpl_release,
11041107
.llseek = zpl_llseek,

0 commit comments

Comments
 (0)