Whamcloud - gitweb
LU-4423 mdc: use 64-bit timestamps for mdc
[fs/lustre-release.git] / lustre / mdc / mdc_request.c
index e129d3b..d931848 100644 (file)
@@ -344,7 +344,7 @@ static int mdc_xattr_common(struct obd_export *exp,const struct req_format *fmt,
                 rec->sx_suppgid2 = -1;
                 rec->sx_fid    = *fid;
                 rec->sx_valid  = valid | OBD_MD_FLCTIME;
-                rec->sx_time   = cfs_time_current_sec();
+               rec->sx_time   = ktime_get_real_seconds();
                 rec->sx_size   = output_size;
                 rec->sx_flags  = flags;
        } else {