Remove the unused bucket array in struct pnfs_ds_commit_info.
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -1284,8 +1284,6 @@ struct pnfs_ds_commit_info { · 1283 unmodified lines | ||
| 1284 | 1284 | struct list_head commits; |
| 1285 | 1285 | unsigned int nwritten; |
| 1286 | 1286 | unsigned int ncommitting; |
| 1287 | − unsigned int nbuckets; | |
| 1288 | − struct pnfs_commit_bucket *buckets; | |
| 1289 | 1287 | }; |
| 1290 | 1288 | |
| 1291 | 1289 | struct nfs41_state_protection { |
| @@ -1396,22 +1394,11 @@ struct nfs41_free_stateid_res { · 104 unmodified lines | ||
| 1396 | 1394 | unsigned int status; |
| 1397 | 1395 | }; |
| 1398 | 1396 | |
| 1399 | −static inline void | |
| 1400 | −nfs_free_pnfs_ds_cinfo(struct pnfs_ds_commit_info *cinfo) | |
| 1401 | −{ | |
| 1402 | − kfree(cinfo->buckets); | |
| 1403 | −} | |
| 1404 | − | |
| 1405 | 1397 | #else |
| 1406 | 1398 | |
| 1407 | 1399 | struct pnfs_ds_commit_info { |
| 1408 | 1400 | }; |
| 1409 | 1401 | |
| 1410 | −static inline void | |
| 1411 | −nfs_free_pnfs_ds_cinfo(struct pnfs_ds_commit_info *cinfo) | |
| 1412 | −{ | |
| 1413 | −} | |
| 1414 | − | |
| 1415 | 1402 | #endif /* CONFIG_NFS_V4_1 */ |
| 1416 | 1403 | |
| 1417 | 1404 | #ifdef CONFIG_NFS_V4_2 |