infra: fix lamport clock on stat()

This commit is contained in:
Thomas Schoebel-Theuer 2013-01-14 23:17:26 +01:00
parent 9c9a8d22d7
commit 5cfd36618a
1 changed files with 4 additions and 0 deletions

View File

@ -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);