]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
nfsd: flex file device id encoding will need the server address
authorTom Haynes <thomas.haynes@primarydata.com>
Tue, 14 Jun 2016 20:41:27 +0000 (13:41 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 13 Jul 2016 19:40:47 +0000 (15:40 -0400)
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/blocklayout.c
fs/nfsd/nfs4proc.c
fs/nfsd/pnfs.h

index 31f3df193bdbb47b82dbe8df7f67b33163d55828..c98563d35822ec45c9377f8e5d9ebada76fa855d 100644 (file)
@@ -162,6 +162,7 @@ nfsd4_block_get_device_info_simple(struct super_block *sb,
 
 static __be32
 nfsd4_block_proc_getdeviceinfo(struct super_block *sb,
+               struct svc_rqst *rqstp,
                struct nfs4_client *clp,
                struct nfsd4_getdeviceinfo *gdp)
 {
@@ -354,6 +355,7 @@ nfsd4_block_get_device_info_scsi(struct super_block *sb,
 
 static __be32
 nfsd4_scsi_proc_getdeviceinfo(struct super_block *sb,
+               struct svc_rqst *rqstp,
                struct nfs4_client *clp,
                struct nfsd4_getdeviceinfo *gdp)
 {
index b1159b3e981688e22324dcfebf640e165f0d7ec7..89fad8aeffe201219f9c0a9b060088cafe706233 100644 (file)
@@ -1270,7 +1270,7 @@ nfsd4_getdeviceinfo(struct svc_rqst *rqstp,
        nfserr = nfs_ok;
        if (gdp->gd_maxcount != 0) {
                nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb,
-                                       cstate->session->se_client, gdp);
+                               rqstp, cstate->session->se_client, gdp);
        }
 
        gdp->gd_notify_types &= ops->notify_types;
index 7d073b9b1553041d32910ef41de7883a90af3b37..e855677fb1320c9daaa39f319516a74b4fa179a9 100644 (file)
@@ -21,6 +21,7 @@ struct nfsd4_layout_ops {
        u32             notify_types;
 
        __be32 (*proc_getdeviceinfo)(struct super_block *sb,
+                       struct svc_rqst *rqstp,
                        struct nfs4_client *clp,
                        struct nfsd4_getdeviceinfo *gdevp);
        __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr,