Skip to content

Commit b1043a3

Browse files
Christoph Hellwigamschuma-ntap
authored andcommitted
nfs: remove the unused max_deviceinfo_size field from struct pnfs_layoutdriver_type
max_deviceinfo_size is not set anywhere, remove it. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent b571cfc commit b1043a3

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

fs/nfs/pnfs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ struct pnfs_layoutdriver_type {
133133
const char *name;
134134
struct module *owner;
135135
unsigned flags;
136-
unsigned max_deviceinfo_size;
137136
unsigned max_layoutget_response;
138137

139138
int (*set_layoutdriver) (struct nfs_server *, const struct nfs_fh *);

fs/nfs/pnfs_dev.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ nfs4_get_device_info(struct nfs_server *server,
110110
* GETDEVICEINFO's maxcount
111111
*/
112112
max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz;
113-
if (server->pnfs_curr_ld->max_deviceinfo_size &&
114-
server->pnfs_curr_ld->max_deviceinfo_size < max_resp_sz)
115-
max_resp_sz = server->pnfs_curr_ld->max_deviceinfo_size;
116113
max_pages = nfs_page_array_len(0, max_resp_sz);
117114
dprintk("%s: server %p max_resp_sz %u max_pages %d\n",
118115
__func__, server, max_resp_sz, max_pages);

0 commit comments

Comments
 (0)