vol: rename volUpdateCounter macro

Change the volUpdateCounter volume macro name to be
consistent with the volume header name.

Change-Id: I55f55f2c084135e9598c194ed9081fce800ddfe9
Reviewed-on: http://gerrit.openafs.org/11318
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Michael Meffie 2014-07-21 17:41:32 -04:00 committed by Jeffrey Altman
parent ada9dba075
commit 218561a5d9
3 changed files with 4 additions and 4 deletions

View File

@ -1428,8 +1428,8 @@ VPutVnode_r(Error * ec, Vnode * vnp)
if (vnp->changed_newTime) if (vnp->changed_newTime)
{ {
V_updateDate(vp) = vp->updateTime = now; V_updateDate(vp) = vp->updateTime = now;
if(V_volUpCounter(vp)< UINT_MAX) if(V_volUpdateCounter(vp)< UINT_MAX)
V_volUpCounter(vp)++; V_volUpdateCounter(vp)++;
} }
/* The vnode has been changed. Write it out to disk */ /* The vnode has been changed. Write it out to disk */

View File

@ -1175,7 +1175,7 @@ PrintHeader(Volume * vp)
V_dayUse(vp), V_weekUse(vp)[0], V_weekUse(vp)[1], V_weekUse(vp)[2], V_dayUse(vp), V_weekUse(vp)[0], V_weekUse(vp)[1], V_weekUse(vp)[2],
V_weekUse(vp)[3], V_weekUse(vp)[4], V_weekUse(vp)[5], V_weekUse(vp)[3], V_weekUse(vp)[4], V_weekUse(vp)[5],
V_weekUse(vp)[6], date(V_dayUseDate(vp))); V_weekUse(vp)[6], date(V_dayUseDate(vp)));
printf("volUpdateCounter = %u\n", V_volUpCounter(vp)); printf("volUpdateCounter = %u\n", V_volUpdateCounter(vp));
} }
/** /**

View File

@ -776,7 +776,7 @@ struct volHeader {
#define V_stat_fileDiffAuthor(vp, idx) (((vp)->header->diskstuff.stat_fileDiffAuthor)[idx]) #define V_stat_fileDiffAuthor(vp, idx) (((vp)->header->diskstuff.stat_fileDiffAuthor)[idx])
#define V_stat_dirSameAuthor(vp, idx) (((vp)->header->diskstuff.stat_dirSameAuthor)[idx]) #define V_stat_dirSameAuthor(vp, idx) (((vp)->header->diskstuff.stat_dirSameAuthor)[idx])
#define V_stat_dirDiffAuthor(vp, idx) (((vp)->header->diskstuff.stat_dirDiffAuthor)[idx]) #define V_stat_dirDiffAuthor(vp, idx) (((vp)->header->diskstuff.stat_dirDiffAuthor)[idx])
#define V_volUpCounter(vp) ((vp)->header->diskstuff.volUpdateCounter) #define V_volUpdateCounter(vp) ((vp)->header->diskstuff.volUpdateCounter)
/* File offset computations. The offset values in the volume header are /* File offset computations. The offset values in the volume header are
computed with these macros -- when the file is written only!! */ computed with these macros -- when the file is written only!! */