X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Flinkea.c;h=cf17a50999f8df898d750a5c5c343c0e43e59b1d;hb=4cfe77df6f2499effa1644e6ad5a594abb11be23;hp=a1bcc3d7de608fd13f0602b526239a2e7290a0d3;hpb=e760042016bb5b12f9b21568304c02711930720f;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/linkea.c b/lustre/obdclass/linkea.c index a1bcc3d..cf17a50 100644 --- a/lustre/obdclass/linkea.c +++ b/lustre/obdclass/linkea.c @@ -21,13 +21,12 @@ * GPL HEADER END */ /* - * Copyright (c) 2013, 2016, Intel Corporation. + * Copyright (c) 2013, 2017, Intel Corporation. * Use is subject to license terms. * * Author: Di Wang */ -#include #include #include @@ -144,10 +143,11 @@ int linkea_add_buf(struct linkea_data *ldata, const struct lu_name *lname, reclen = lname->ln_namelen + sizeof(struct link_ea_entry); if (unlikely(leh->leh_len + reclen > MAX_LINKEA_SIZE)) { /* Use 32-bits to save the overflow time, although it will - * shrink the cfs_time_current_sec() returned 64-bits value + * shrink the ktime_get_real_seconds() returned 64-bits value * to 32-bits value, it is still quite large and can be used - * for about 140 years. That is enough. */ - leh->leh_overflow_time = cfs_time_current_sec(); + * for about 140 years. That is enough. + */ + leh->leh_overflow_time = ktime_get_real_seconds(); if (unlikely(leh->leh_overflow_time == 0)) leh->leh_overflow_time++; @@ -236,7 +236,7 @@ int linkea_overflow_shrink(struct linkea_data *ldata) if (unlikely(leh->leh_reccount == 0)) return 0; - leh->leh_overflow_time = cfs_time_current_sec(); + leh->leh_overflow_time = ktime_get_real_seconds(); if (unlikely(leh->leh_overflow_time == 0)) leh->leh_overflow_time++; ldata->ld_reclen = 0;