The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] proc: use pid_has_task() in proc_inode_is_dead()
@ 2026-10-17 16:00 Oleg Nesterov
  2026-10-21 14:01 ` Christian Brauner
  0 siblings, 1 reply; 2+ messages 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 related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-21 14:01 UTC | newest]

Thread overview: 2+ messages (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
2026-10-21 14:01 ` Christian Brauner

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