mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] proc: use pid_has_task() in proc_inode_is_dead()
@ 2026-10-17 16:00 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2026-10-17 16:00 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Christian Brauner, linux-kernel

to make it more readable and consistent.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 6a39de424f62..a545796177e8 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2064,7 +2064,7 @@ static int pid_revalidate(struct inode *dir, const struct qstr *name,
 
 static inline bool proc_inode_is_dead(struct inode *inode)
 {
-	return !proc_pid(inode)->tasks[PIDTYPE_PID].first;
+	return !pid_has_task(proc_pid(inode), PIDTYPE_PID);
 }
 
 int pid_delete_dentry(const struct dentry *dentry)
-- 
2.55.0



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-17 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-17 16:00 [PATCH] proc: use pid_has_task() in proc_inode_is_dead() Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®