mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-15 19:56:36 +00:00
Only provide direct_IO method for platforms where we support it
This was causing some interesting issues because the vfs code makes decisions based on the existence of the method while the read/write iterators ignore the IOCB_DIRECT flag. Signed-off-by: Chris Kirby <ckirby@versity.com>
This commit is contained in:
@@ -2238,7 +2238,9 @@ static int scoutfs_file_mmap(struct file *file, struct vm_area_struct *vma)
|
||||
|
||||
const struct address_space_operations scoutfs_file_aops = {
|
||||
#ifdef KC_MPAGE_READ_FOLIO
|
||||
#ifdef KC_USE_IOMAP_FOR_IO
|
||||
.direct_IO = noop_direct_IO,
|
||||
#endif
|
||||
.dirty_folio = block_dirty_folio,
|
||||
.invalidate_folio = block_invalidate_folio,
|
||||
.read_folio = scoutfs_read_folio,
|
||||
|
||||
Reference in New Issue
Block a user