|
@@ -184,12 +184,46 @@ xfs_buf_alloc(
|
|
|
return _xfs_buf_alloc(target, &map, 1, flags);
|
|
return _xfs_buf_alloc(target, &map, 1, flags);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-struct xfs_buf *xfs_buf_get(struct xfs_buftarg *target, xfs_daddr_t blkno,
|
|
|
|
|
- size_t numblks, xfs_buf_flags_t flags);
|
|
|
|
|
-struct xfs_buf *xfs_buf_read(struct xfs_buftarg *target, xfs_daddr_t blkno,
|
|
|
|
|
- size_t numblks, xfs_buf_flags_t flags);
|
|
|
|
|
-void xfs_buf_readahead(struct xfs_buftarg *target, xfs_daddr_t blkno,
|
|
|
|
|
- size_t numblks);
|
|
|
|
|
|
|
+struct xfs_buf *xfs_buf_get_map(struct xfs_buftarg *target,
|
|
|
|
|
+ struct xfs_buf_map *map, int nmaps,
|
|
|
|
|
+ xfs_buf_flags_t flags);
|
|
|
|
|
+struct xfs_buf *xfs_buf_read_map(struct xfs_buftarg *target,
|
|
|
|
|
+ struct xfs_buf_map *map, int nmaps,
|
|
|
|
|
+ xfs_buf_flags_t flags);
|
|
|
|
|
+void xfs_buf_readahead_map(struct xfs_buftarg *target,
|
|
|
|
|
+ struct xfs_buf_map *map, int nmaps);
|
|
|
|
|
+
|
|
|
|
|
+static inline struct xfs_buf *
|
|
|
|
|
+xfs_buf_get(
|
|
|
|
|
+ struct xfs_buftarg *target,
|
|
|
|
|
+ xfs_daddr_t blkno,
|
|
|
|
|
+ size_t numblks,
|
|
|
|
|
+ xfs_buf_flags_t flags)
|
|
|
|
|
+{
|
|
|
|
|
+ DEFINE_SINGLE_BUF_MAP(map, blkno, numblks);
|
|
|
|
|
+ return xfs_buf_get_map(target, &map, 1, flags);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+static inline struct xfs_buf *
|
|
|
|
|
+xfs_buf_read(
|
|
|
|
|
+ struct xfs_buftarg *target,
|
|
|
|
|
+ xfs_daddr_t blkno,
|
|
|
|
|
+ size_t numblks,
|
|
|
|
|
+ xfs_buf_flags_t flags)
|
|
|
|
|
+{
|
|
|
|
|
+ DEFINE_SINGLE_BUF_MAP(map, blkno, numblks);
|
|
|
|
|
+ return xfs_buf_read_map(target, &map, 1, flags);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+static inline void
|
|
|
|
|
+xfs_buf_readahead(
|
|
|
|
|
+ struct xfs_buftarg *target,
|
|
|
|
|
+ xfs_daddr_t blkno,
|
|
|
|
|
+ size_t numblks)
|
|
|
|
|
+{
|
|
|
|
|
+ DEFINE_SINGLE_BUF_MAP(map, blkno, numblks);
|
|
|
|
|
+ return xfs_buf_readahead_map(target, &map, 1);
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
struct xfs_buf *xfs_buf_get_empty(struct xfs_buftarg *target, size_t numblks);
|
|
struct xfs_buf *xfs_buf_get_empty(struct xfs_buftarg *target, size_t numblks);
|
|
|
void xfs_buf_set_empty(struct xfs_buf *bp, size_t numblks);
|
|
void xfs_buf_set_empty(struct xfs_buf *bp, size_t numblks);
|