OSDN Git Service

sunrpc: use seconds since boot in expiry cache
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / fs / nfsd / nfs4idmap.c
index c78dbf4..808b33a 100644 (file)
@@ -550,7 +550,7 @@ do_idmap_lookup_nowait(struct ent *(*lookup_fn)(struct ent *),
                goto out_err;
        ret = -ETIMEDOUT;
        if (!test_bit(CACHE_VALID, &(*item)->h.flags)
-                       || (*item)->h.expiry_time < get_seconds()
+                       || (*item)->h.expiry_time < seconds_since_boot()
                        || detail->flush_time > (*item)->h.last_refresh)
                goto out_put;
        ret = -ENOENT;