Skip to contentSkip to conversation

nfs: remove the unused max_deviceinfo_size field from struct pnfs_layoutdriver_type

PATCH New Christoph Hellwig 1 participant 1 message Jul 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: remove the unused max_deviceinfo_size field from struct pnfs_layoutdriver_type

max_deviceinfo_size is not set anywhere, remove it.

---
 fs/nfs/pnfs.h     | 1 -
 fs/nfs/pnfs_dev.c | 3 ---
 2 files changed, 4 deletions(-)
fs/nfs/pnfs.h +0 -1
index 1fc40afcbf1f50..30d2613e912b88 100644
@@ -133,7 +133,6 @@ struct pnfs_layoutdriver_type {
 	const char *name;
 	struct module *owner;
 	unsigned flags;
-	unsigned max_deviceinfo_size;
 	unsigned max_layoutget_response;
 
 	int (*set_layoutdriver) (struct nfs_server *, const struct nfs_fh *);
fs/nfs/pnfs_dev.c +0 -3
index 178001c90156fd..bf0f2d67e96c15 100644
@@ -110,9 +110,6 @@ nfs4_get_device_info(struct nfs_server *server,
 	 * GETDEVICEINFO's maxcount
 	 */
 	max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz;
-	if (server->pnfs_curr_ld->max_deviceinfo_size &&
-	    server->pnfs_curr_ld->max_deviceinfo_size < max_resp_sz)
-		max_resp_sz = server->pnfs_curr_ld->max_deviceinfo_size;
 	max_pages = nfs_page_array_len(0, max_resp_sz);
 	dprintk("%s: server %p max_resp_sz %u max_pages %d\n",
 		__func__, server, max_resp_sz, max_pages);
Signature · 1 line
2.43.0