infra: make ordered_readlink stamp-preserving

This commit is contained in:
Thomas Schoebel-Theuer 2020-09-23 21:12:51 +02:00 committed by Thomas Schoebel-Theuer
parent 4d2d63eda0
commit 5e39f44a62

View File

@ -833,9 +833,7 @@ char *mars_readlink(const char *newpath, struct lamport_time *stamp)
if (unlikely(status < 0)) {
MARS_ERR("cannot read link '%s', status = %d\n", newpath, status);
} else if (stamp) {
set_get_lamport(&inode->i_mtime, NULL, stamp);
} else {
set_lamport(&inode->i_mtime);
*stamp = inode->i_mtime;
}
done_put: