fs: add extent_map hooks to the address space operations
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 92734c0..00d1d81 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -531,6 +531,15 @@
int (*launder_page) (struct page *);
int (*is_partially_uptodate) (struct page *, read_descriptor_t *,
unsigned long);
+
+ /* raw extent mapping to the disk */
+ struct extent_map *(*map_extent)(struct address_space *mapping,
+ struct page *page,
+ size_t page_offset,
+ loff_t start, u64 len, int create,
+ gfp_t gfp_mask);
+ int (*extent_io_complete)(struct address_space *mapping, loff_t start,
+ u64 len);
};
/*