struct qmt_thread_info *qti = qmt_info(env);
struct lquota_entry *lqe;
struct thandle *th = NULL;
- __u64 ver, now;
+ time64_t now;
+ __u64 ver;
bool dirtied = false;
int rc = 0;
ENTRY;
if (IS_ERR(th))
GOTO(out_nolock, rc = PTR_ERR(th));
- now = cfs_time_current_sec();
+ now = ktime_get_real_seconds();
lqe_write_lock(lqe);
LQUOTA_DEBUG(lqe, "changing quota settings valid:%x hard:%llu soft:"
slv_granted_bck = slv_granted;
/* record current time for soft limit & grace time management */
- now = (__u64)cfs_time_current_sec();
+ now = ktime_get_real_seconds();
if (req_is_rel(qb_flags)) {
/* Slave would like to release quota space */