History

NFS: Remove bucket array from struct pnfs_ds_commit_info

Remove the unused bucket array in struct pnfs_ds_commit_info.

Trond Myklebust committed 6 years ago

Commit 0aa647b1 parent fb6b53b6 files · +1 −185Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/nfs_xdr.h+0−13
@@ -1284,8 +1284,6 @@ struct pnfs_ds_commit_info { · 1283 unmodified lines
1284 struct list_head commits;1284 struct list_head commits;
1285 unsigned int nwritten;1285 unsigned int nwritten;
1286 unsigned int ncommitting;1286 unsigned int ncommitting;
1287 unsigned int nbuckets;
1288 struct pnfs_commit_bucket *buckets;
1289};1287};
1290 1288
1291struct nfs41_state_protection {1289struct nfs41_state_protection {
@@ -1396,22 +1394,11 @@ struct nfs41_free_stateid_res { · 104 unmodified lines
1396 unsigned int status;1394 unsigned int status;
1397};1395};
1398 1396
1399static inline void
1400nfs_free_pnfs_ds_cinfo(struct pnfs_ds_commit_info *cinfo)
1401{
1402 kfree(cinfo->buckets);
1403}
1404
1405#else1397#else
1406 1398
1407struct pnfs_ds_commit_info {1399struct pnfs_ds_commit_info {
1408};1400};
1409 1401
1410static inline void
1411nfs_free_pnfs_ds_cinfo(struct pnfs_ds_commit_info *cinfo)
1412{
1413}
1414
1415#endif /* CONFIG_NFS_V4_1 */1402#endif /* CONFIG_NFS_V4_1 */
1416 1403
1417#ifdef CONFIG_NFS_V4_21404#ifdef CONFIG_NFS_V4_2