mirror of https://github.com/schoebel/mars
infra: fix lamport clock on stat()
This commit is contained in:
parent
9c9a8d22d7
commit
5cfd36618a
|
@ -79,6 +79,10 @@ int mars_stat(const char *path, struct kstat *stat, bool use_lstat)
|
||||||
}
|
}
|
||||||
set_fs(oldfs);
|
set_fs(oldfs);
|
||||||
|
|
||||||
|
if (likely(status >= 0)) {
|
||||||
|
set_lamport(&stat->mtime);
|
||||||
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mars_stat);
|
EXPORT_SYMBOL_GPL(mars_stat);
|
||||||
|
|
Loading…
Reference in New Issue