summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2011-05-22 18:51:33 +0200
committerBoaz Harrosh <bharrosh@panasas.com>2011-05-29 19:53:50 +0200
commit636fb9c89d7e216aac3d406e458864420057e981 (patch)
tree4342ccf39c4b4b26bdcf79833c7f98f8b9913262 /fs/nfs/pnfs.h
parentpnfs-obj: objio_osd device information retrieval and caching (diff)
downloadlinux-636fb9c89d7e216aac3d406e458864420057e981.tar.xz
linux-636fb9c89d7e216aac3d406e458864420057e981.zip
pnfs: alloc and free layout_hdr layoutdriver methods
[gfp_flags] Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Diffstat (limited to '')
-rw-r--r--fs/nfs/pnfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index f37ab3539cbf..925d6ef8ba79 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -73,6 +73,10 @@ struct pnfs_layoutdriver_type {
const u32 id;
const char *name;
struct module *owner;
+
+ struct pnfs_layout_hdr * (*alloc_layout_hdr) (struct inode *inode, gfp_t gfp_flags);
+ void (*free_layout_hdr) (struct pnfs_layout_hdr *);
+
struct pnfs_layout_segment * (*alloc_lseg) (struct pnfs_layout_hdr *layoutid, struct nfs4_layoutget_res *lgr, gfp_t gfp_flags);
void (*free_lseg) (struct pnfs_layout_segment *lseg);