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
12841284 struct list_head commits;
12851285 unsigned int nwritten;
12861286 unsigned int ncommitting;
1287− unsigned int nbuckets;
1288− struct pnfs_commit_bucket *buckets;
12891287 };
12901288
12911289 struct nfs41_state_protection {
@@ -1396,22 +1394,11 @@ struct nfs41_free_stateid_res { · 104 unmodified lines
13961394 unsigned int status;
13971395 };
13981396
1399−static inline void
1400−nfs_free_pnfs_ds_cinfo(struct pnfs_ds_commit_info *cinfo)
1401−{
1402− kfree(cinfo->buckets);
1403−}
1404−
14051397 #else
14061398
14071399 struct pnfs_ds_commit_info {
14081400 };
14091401
1410−static inline void
1411−nfs_free_pnfs_ds_cinfo(struct pnfs_ds_commit_info *cinfo)
1412−{
1413−}
1414−
14151402 #endif /* CONFIG_NFS_V4_1 */
14161403
14171404 #ifdef CONFIG_NFS_V4_2