Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> --- fs/nfs/nfs4proc.c | 11 +++++------ fs/nfs/pnfs.h | 4 ++-- include/linux/nfs4_pnfs.h | 3 ++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index f7ab35d..3742ba0 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5770,8 +5770,8 @@ out: /* * Retrieve the list of Data Server devices from the MDS. */ -static int _nfs4_pnfs_getdevicelist(struct nfs_fh *fh, - struct nfs_server *server, +static int _nfs4_pnfs_getdevicelist(struct nfs_server *server, + const struct nfs_fh *fh, struct pnfs_devicelist *devlist) { struct nfs4_pnfs_getdevicelist_arg arg = { @@ -5794,17 +5794,16 @@ static int _nfs4_pnfs_getdevicelist(struct nfs_fh *fh, return status; } -int nfs4_pnfs_getdevicelist(struct super_block *sb, - struct nfs_fh *fh, +int nfs4_pnfs_getdevicelist(struct nfs_server *server, + const struct nfs_fh *fh, struct pnfs_devicelist *devlist) { struct nfs4_exception exception = { }; - struct nfs_server *server = NFS_SB(sb); int err; do { err = nfs4_handle_exception(server, - _nfs4_pnfs_getdevicelist(fh, server, devlist), + _nfs4_pnfs_getdevicelist(server, fh, devlist), &exception); } while (exception.retry); diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index b5bb742..77623ea 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -22,8 +22,8 @@ #include "iostat.h" /* nfs4proc.c */ -extern int nfs4_pnfs_getdevicelist(struct super_block *sb, - struct nfs_fh *fh, +extern int nfs4_pnfs_getdevicelist(struct nfs_server *server, + const struct nfs_fh *fh, struct pnfs_devicelist *devlist); extern int nfs4_pnfs_getdeviceinfo(struct nfs_server *server, struct pnfs_device *dev); diff --git a/include/linux/nfs4_pnfs.h b/include/linux/nfs4_pnfs.h index 3385a5c..87bb982 100644 --- a/include/linux/nfs4_pnfs.h +++ b/include/linux/nfs4_pnfs.h @@ -321,7 +321,8 @@ extern void nfs4_delete_device(struct nfs4_deviceid_cache *, * E.g., getdeviceinfo, I/O callbacks, etc */ struct pnfs_client_operations { - int (*nfs_getdevicelist) (struct super_block *sb, struct nfs_fh *fh, + int (*nfs_getdevicelist) (struct nfs_server *, + const struct nfs_fh *fh, struct pnfs_devicelist *devlist); int (*nfs_getdeviceinfo) (struct nfs_server *, struct pnfs_device *dev); -- 1.6.5.1 -- 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