Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hch@lst.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>

authored by

Christoph Hellwig and committed by
Anna Schumaker
b1043a33 b571cfcb

-4
-1
fs/nfs/pnfs.h
··· 133 133 const char *name; 134 134 struct module *owner; 135 135 unsigned flags; 136 - unsigned max_deviceinfo_size; 137 136 unsigned max_layoutget_response; 138 137 139 138 int (*set_layoutdriver) (struct nfs_server *, const struct nfs_fh *);
-3
fs/nfs/pnfs_dev.c
··· 110 110 * GETDEVICEINFO's maxcount 111 111 */ 112 112 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; 116 113 max_pages = nfs_page_array_len(0, max_resp_sz); 117 114 dprintk("%s: server %p max_resp_sz %u max_pages %d\n", 118 115 __func__, server, max_resp_sz, max_pages);