|
@@ -45,6 +45,19 @@
|
|
#include <linux/pnfs_osd_xdr.h>
|
|
#include <linux/pnfs_osd_xdr.h>
|
|
#include "../pnfs.h"
|
|
#include "../pnfs.h"
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * per-inode layout
|
|
|
|
+ */
|
|
|
|
+struct objlayout {
|
|
|
|
+ struct pnfs_layout_hdr pnfs_layout;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static inline struct objlayout *
|
|
|
|
+OBJLAYOUT(struct pnfs_layout_hdr *lo)
|
|
|
|
+{
|
|
|
|
+ return container_of(lo, struct objlayout, pnfs_layout);
|
|
|
|
+}
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Raid engine I/O API
|
|
* Raid engine I/O API
|
|
*/
|
|
*/
|
|
@@ -66,6 +79,10 @@ extern void objlayout_put_deviceinfo(struct pnfs_osd_deviceaddr *deviceaddr);
|
|
/*
|
|
/*
|
|
* exported generic objects function vectors
|
|
* exported generic objects function vectors
|
|
*/
|
|
*/
|
|
|
|
+
|
|
|
|
+extern struct pnfs_layout_hdr *objlayout_alloc_layout_hdr(struct inode *, gfp_t gfp_flags);
|
|
|
|
+extern void objlayout_free_layout_hdr(struct pnfs_layout_hdr *);
|
|
|
|
+
|
|
extern struct pnfs_layout_segment *objlayout_alloc_lseg(
|
|
extern struct pnfs_layout_segment *objlayout_alloc_lseg(
|
|
struct pnfs_layout_hdr *,
|
|
struct pnfs_layout_hdr *,
|
|
struct nfs4_layoutget_res *,
|
|
struct nfs4_layoutget_res *,
|