mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
ada9dba075
commit
218561a5d9
@ -1428,8 +1428,8 @@ VPutVnode_r(Error * ec, Vnode * vnp)
|
||||
if (vnp->changed_newTime)
|
||||
{
|
||||
V_updateDate(vp) = vp->updateTime = now;
|
||||
if(V_volUpCounter(vp)< UINT_MAX)
|
||||
V_volUpCounter(vp)++;
|
||||
if(V_volUpdateCounter(vp)< UINT_MAX)
|
||||
V_volUpdateCounter(vp)++;
|
||||
}
|
||||
|
||||
/* The vnode has been changed. Write it out to disk */
|
||||
|
@ -1175,7 +1175,7 @@ PrintHeader(Volume * vp)
|
||||
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)[6], date(V_dayUseDate(vp)));
|
||||
printf("volUpdateCounter = %u\n", V_volUpCounter(vp));
|
||||
printf("volUpdateCounter = %u\n", V_volUpdateCounter(vp));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -776,7 +776,7 @@ struct volHeader {
|
||||
#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_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
|
||||
computed with these macros -- when the file is written only!! */
|
||||
|
Loading…
Reference in New Issue
Block a user