Skip to content

Commit 7031a48

Browse files
authored
Export correct symbols for Lustre Direct I/O
Originally the Lustre ZFS OSD code was going to use zfs_uio_t structs for supporting Direct I/O with ZFS. However, this has changed to using abd_t structs instead. This exports the proper symbols that will be used by the Lustre ZFS OSD code. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Brian Atkinson <[email protected]> Closes #17256
1 parent 37a3e26 commit 7031a48

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

module/os/linux/zfs/abd_os.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,8 @@ abd_bio_map_off(struct bio *bio, abd_t *abd,
13401340
return (io_size);
13411341
}
13421342

1343+
EXPORT_SYMBOL(abd_alloc_from_pages);
1344+
13431345
/* Tunable Parameters */
13441346
module_param(zfs_abd_scatter_enabled, int, 0644);
13451347
MODULE_PARM_DESC(zfs_abd_scatter_enabled,

module/zfs/abd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,3 +1210,5 @@ abd_raidz_rec_iterate(abd_t **cabds, abd_t **tabds,
12101210
}
12111211
abd_exit_critical(flags);
12121212
}
1213+
1214+
EXPORT_SYMBOL(abd_free);

module/zfs/dmu_direct.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,5 +393,5 @@ dmu_write_uio_direct(dnode_t *dn, zfs_uio_t *uio, uint64_t size, dmu_tx_t *tx)
393393
}
394394
#endif /* _KERNEL */
395395

396-
EXPORT_SYMBOL(dmu_read_uio_direct);
397-
EXPORT_SYMBOL(dmu_write_uio_direct);
396+
EXPORT_SYMBOL(dmu_read_abd);
397+
EXPORT_SYMBOL(dmu_write_abd);

0 commit comments

Comments
 (0)