From: Andy Adamson <andros@xxxxxxxxxx> squash into pnfs_submit: filelayout alloc_layout and free_layout Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/nfs4filelayout.c | 6 +++--- fs/nfs/nfs4filelayout.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index fea1772..fa08540 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c @@ -282,10 +282,10 @@ filelayout_write_pagelist(struct nfs_write_data *data, unsigned nr_pages, int sy /* * Create a filelayout layout structure and return it. The pNFS client - * will use the pnfs_layout_type type to refer to the layout for this + * will use the pnfs_layout_hdr type to refer to the layout for this * inode from now on. */ -static struct pnfs_layout_type * +static struct pnfs_layout_hdr * filelayout_alloc_layout(struct inode *inode) { struct nfs4_filelayout *flp; @@ -297,7 +297,7 @@ filelayout_alloc_layout(struct inode *inode) /* Free a filelayout layout structure */ static void -filelayout_free_layout(struct pnfs_layout_type *lo) +filelayout_free_layout(struct pnfs_layout_hdr *lo) { dprintk("NFS_FILELAYOUT: freeing layout\n"); kfree(FILE_LO(lo)); diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/nfs4filelayout.h index f8f7c05..c851919 100644 --- a/fs/nfs/nfs4filelayout.h +++ b/fs/nfs/nfs4filelayout.h @@ -62,7 +62,7 @@ struct nfs4_filelayout_segment { }; struct nfs4_filelayout { - struct pnfs_layout_type fl_layout; + struct pnfs_layout_hdr fl_layout; u32 stripe_unit; }; @@ -70,7 +70,7 @@ extern struct nfs_fh * nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, loff_t offset); static inline struct nfs4_filelayout * -FILE_LO(struct pnfs_layout_type *lo) +FILE_LO(struct pnfs_layout_hdr *lo) { return container_of(lo, struct nfs4_filelayout, fl_layout); } -- 1.6.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html