|
@@ -340,7 +340,8 @@ static void afs_vlocation_queue_for_updates(struct afs_vlocation *vl)
|
|
struct afs_vlocation *xvl;
|
|
struct afs_vlocation *xvl;
|
|
|
|
|
|
/* wait at least 10 minutes before updating... */
|
|
/* wait at least 10 minutes before updating... */
|
|
- vl->update_at = get_seconds() + afs_vlocation_update_timeout;
|
|
|
|
|
|
+ vl->update_at = ktime_get_real_seconds() +
|
|
|
|
+ afs_vlocation_update_timeout;
|
|
|
|
|
|
spin_lock(&afs_vlocation_updates_lock);
|
|
spin_lock(&afs_vlocation_updates_lock);
|
|
|
|
|
|
@@ -506,7 +507,7 @@ void afs_put_vlocation(struct afs_vlocation *vl)
|
|
if (atomic_read(&vl->usage) == 0) {
|
|
if (atomic_read(&vl->usage) == 0) {
|
|
_debug("buried");
|
|
_debug("buried");
|
|
list_move_tail(&vl->grave, &afs_vlocation_graveyard);
|
|
list_move_tail(&vl->grave, &afs_vlocation_graveyard);
|
|
- vl->time_of_death = get_seconds();
|
|
|
|
|
|
+ vl->time_of_death = ktime_get_real_seconds();
|
|
queue_delayed_work(afs_wq, &afs_vlocation_reap,
|
|
queue_delayed_work(afs_wq, &afs_vlocation_reap,
|
|
afs_vlocation_timeout * HZ);
|
|
afs_vlocation_timeout * HZ);
|
|
|
|
|
|
@@ -543,11 +544,11 @@ static void afs_vlocation_reaper(struct work_struct *work)
|
|
LIST_HEAD(corpses);
|
|
LIST_HEAD(corpses);
|
|
struct afs_vlocation *vl;
|
|
struct afs_vlocation *vl;
|
|
unsigned long delay, expiry;
|
|
unsigned long delay, expiry;
|
|
- time_t now;
|
|
|
|
|
|
+ time64_t now;
|
|
|
|
|
|
_enter("");
|
|
_enter("");
|
|
|
|
|
|
- now = get_seconds();
|
|
|
|
|
|
+ now = ktime_get_real_seconds();
|
|
spin_lock(&afs_vlocation_graveyard_lock);
|
|
spin_lock(&afs_vlocation_graveyard_lock);
|
|
|
|
|
|
while (!list_empty(&afs_vlocation_graveyard)) {
|
|
while (!list_empty(&afs_vlocation_graveyard)) {
|
|
@@ -622,13 +623,13 @@ static void afs_vlocation_updater(struct work_struct *work)
|
|
{
|
|
{
|
|
struct afs_cache_vlocation vldb;
|
|
struct afs_cache_vlocation vldb;
|
|
struct afs_vlocation *vl, *xvl;
|
|
struct afs_vlocation *vl, *xvl;
|
|
- time_t now;
|
|
|
|
|
|
+ time64_t now;
|
|
long timeout;
|
|
long timeout;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
_enter("");
|
|
_enter("");
|
|
|
|
|
|
- now = get_seconds();
|
|
|
|
|
|
+ now = ktime_get_real_seconds();
|
|
|
|
|
|
/* find a record to update */
|
|
/* find a record to update */
|
|
spin_lock(&afs_vlocation_updates_lock);
|
|
spin_lock(&afs_vlocation_updates_lock);
|
|
@@ -684,7 +685,8 @@ static void afs_vlocation_updater(struct work_struct *work)
|
|
|
|
|
|
/* and then reschedule */
|
|
/* and then reschedule */
|
|
_debug("reschedule");
|
|
_debug("reschedule");
|
|
- vl->update_at = get_seconds() + afs_vlocation_update_timeout;
|
|
|
|
|
|
+ vl->update_at = ktime_get_real_seconds() +
|
|
|
|
+ afs_vlocation_update_timeout;
|
|
|
|
|
|
spin_lock(&afs_vlocation_updates_lock);
|
|
spin_lock(&afs_vlocation_updates_lock);
|
|
|
|
|