Project

General

Profile

Bug #3411

We can save 4 bytes in the rfs4_dbe struct

Added by Marcel Telka over 7 years ago. Updated over 7 years ago.

Status:
In Progress
Priority:
Low
Assignee:
Category:
nfs - NFS server and client
Start date:
2012-12-11
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

The rfs4_dbe structure is defined as follows:

63struct rfs4_dbe {
64    kmutex_t lock[1];        /* Exclusive lock for entry */
65    uint32_t refcnt;        /* # of references */
66    unsigned skipsearch:1;        /* skip search */
67    unsigned invalid:1;        /* invalid/"freed" entry */
68    unsigned reserved:31;
69    time_t     time_rele;        /* Time of last rele */
70    id_t     id;            /* unique identifier */
71    kcondvar_t cv[1];
72    rfs4_entry_t data;
73    rfs4_table_t *table;
74    rfs4_link indices[1];        /* Array of indices for entry */
75};

By changing reserved:31 to reserved:30 we would save 4 bytes.


Related issues

Blocked by illumos gate - Feature #3409: mdb: Open source implementation of nfs moduleIn Progress2012-12-10

Actions

History

#1

Updated by Marcel Telka over 7 years ago

  • Priority changed from Normal to Low

Also available in: Atom PDF