Skip to content

Commit d7c920d

Browse files
Tom HaynesJ. Bruce Fields
authored andcommitted
nfsd: flex file device id encoding will need the server address
Signed-off-by: Tom Haynes <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 04d70ed commit d7c920d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

fs/nfsd/blocklayout.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ nfsd4_block_get_device_info_simple(struct super_block *sb,
162162

163163
static __be32
164164
nfsd4_block_proc_getdeviceinfo(struct super_block *sb,
165+
struct svc_rqst *rqstp,
165166
struct nfs4_client *clp,
166167
struct nfsd4_getdeviceinfo *gdp)
167168
{
@@ -354,6 +355,7 @@ nfsd4_block_get_device_info_scsi(struct super_block *sb,
354355

355356
static __be32
356357
nfsd4_scsi_proc_getdeviceinfo(struct super_block *sb,
358+
struct svc_rqst *rqstp,
357359
struct nfs4_client *clp,
358360
struct nfsd4_getdeviceinfo *gdp)
359361
{

fs/nfsd/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,7 @@ nfsd4_getdeviceinfo(struct svc_rqst *rqstp,
12701270
nfserr = nfs_ok;
12711271
if (gdp->gd_maxcount != 0) {
12721272
nfserr = ops->proc_getdeviceinfo(exp->ex_path.mnt->mnt_sb,
1273-
cstate->session->se_client, gdp);
1273+
rqstp, cstate->session->se_client, gdp);
12741274
}
12751275

12761276
gdp->gd_notify_types &= ops->notify_types;

fs/nfsd/pnfs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ struct nfsd4_layout_ops {
2121
u32 notify_types;
2222

2323
__be32 (*proc_getdeviceinfo)(struct super_block *sb,
24+
struct svc_rqst *rqstp,
2425
struct nfs4_client *clp,
2526
struct nfsd4_getdeviceinfo *gdevp);
2627
__be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr,

0 commit comments

Comments
 (0)