diff --git a/include/net/dst.h b/include/net/dst.h index 5047e8053d6ca9900664631646cebe31eb04af15..2f53ecc2c296351c68f22a307d4f711e1176f446 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -257,7 +257,7 @@ static inline void dst_hold(struct dst_entry *dst) static inline void dst_use_noref(struct dst_entry *dst, unsigned long time) { - if (time != dst->lastuse) { + if (unlikely(time != dst->lastuse)) { dst->__use++; dst->lastuse = time; }