diff options
author | NeilBrown <neilb@suse.com> | 2018-05-21 14:35:12 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-25 18:29:10 +0200 |
commit | 63fd7d04580b6345ff1e0aab906c034f973d493e (patch) | |
tree | 759d921e2ae81fc0f703a94f5993de69626d860f /drivers/staging/lustre/lustre/llite | |
parent | 7b8e2026fb185e5178f9137c463ff07fc895be5d (diff) | |
download | op-kernel-dev-63fd7d04580b6345ff1e0aab906c034f973d493e.zip op-kernel-dev-63fd7d04580b6345ff1e0aab906c034f973d493e.tar.gz |
staging: lustre: remove current_pid() and current_comm()
Just use current->pid and current->comm directly, instead
of having wrappers.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite')
-rw-r--r-- | drivers/staging/lustre/lustre/llite/llite_internal.h | 2 | ||||
-rw-r--r-- | drivers/staging/lustre/lustre/llite/statahead.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/llite/llite_internal.h b/drivers/staging/lustre/lustre/llite/llite_internal.h index 6504850..379d88e 100644 --- a/drivers/staging/lustre/lustre/llite/llite_internal.h +++ b/drivers/staging/lustre/lustre/llite/llite_internal.h @@ -1140,7 +1140,7 @@ dentry_may_statahead(struct inode *dir, struct dentry *dentry) return false; /* not the same process, don't statahead */ - if (lli->lli_opendir_pid != current_pid()) + if (lli->lli_opendir_pid != current->pid) return false; /* diff --git a/drivers/staging/lustre/lustre/llite/statahead.c b/drivers/staging/lustre/lustre/llite/statahead.c index b4a6ee6..d864f5f 100644 --- a/drivers/staging/lustre/lustre/llite/statahead.c +++ b/drivers/staging/lustre/lustre/llite/statahead.c @@ -1075,7 +1075,7 @@ static int ll_statahead_thread(void *arg) CDEBUG(D_READA, "Statahead for dir " DFID " hit ratio too low: hit/miss %llu/%llu, sent/replied %llu/%llu, stopping statahead thread: pid %d\n", PFID(&lli->lli_fid), sai->sai_hit, sai->sai_miss, sai->sai_sent, - sai->sai_replied, current_pid()); + sai->sai_replied, current->pid); break; } } @@ -1147,7 +1147,7 @@ void ll_authorize_statahead(struct inode *dir, void *key) */ LASSERT(!lli->lli_opendir_pid); lli->lli_opendir_key = key; - lli->lli_opendir_pid = current_pid(); + lli->lli_opendir_pid = current->pid; lli->lli_sa_enabled = 1; } spin_unlock(&lli->lli_sa_lock); @@ -1506,7 +1506,7 @@ static int start_statahead_thread(struct inode *dir, struct dentry *dentry) atomic_inc(&ll_i2sbi(parent->d_inode)->ll_sa_running); CDEBUG(D_READA, "start statahead thread: [pid %d] [parent %pd]\n", - current_pid(), parent); + current->pid, parent); task = kthread_create(ll_statahead_thread, parent, "ll_sa_%u", lli->lli_opendir_pid); |