linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] procfs: remove unused parameter in proc_pid_lookup
@ 2019-01-10 10:10 Zhikang Zhang
  2019-01-10 10:10 ` Zhikang Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Zhikang Zhang @ 2019-01-10 10:10 UTC (permalink / raw)
  To: adobriyan; +Cc: linux-kernel, linux-fsdevel, heyunlei

struct inode *dir argument in proc_pid_lookup doesn't needed anymore

Fixes: 0168b9e38c42 ("procfs: switch instantiate_t to d_splice_alias()")

Signed-off-by: Zhikang Zhang <zhangzhikang1@huawei.com>
---
 fs/proc/base.c     | 2 +-
 fs/proc/internal.h | 2 +-
 fs/proc/root.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index d7fd1ca..ac44398 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -3157,7 +3157,7 @@ static struct dentry *proc_pid_instantiate(struct dentry * dentry,
 	return d_splice_alias(inode, dentry);
 }
 
-struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
+struct dentry *proc_pid_lookup(struct dentry *dentry, unsigned int flags)
 {
 	struct task_struct *task;
 	unsigned tgid;
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 5185d7f..80d55e8 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -161,7 +161,7 @@ extern struct inode *proc_pid_make_inode(struct super_block *, struct task_struc
 extern void pid_update_inode(struct task_struct *, struct inode *);
 extern int pid_delete_dentry(const struct dentry *);
 extern int proc_pid_readdir(struct file *, struct dir_context *);
-extern struct dentry *proc_pid_lookup(struct inode *, struct dentry *, unsigned int);
+extern struct dentry *proc_pid_lookup(struct dentry *, unsigned int);
 extern loff_t mem_lseek(struct file *, loff_t, int);
 
 /* Lookups */
diff --git a/fs/proc/root.c b/fs/proc/root.c
index f4b1a9d..621e6ec 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -154,7 +154,7 @@ static int proc_root_getattr(const struct path *path, struct kstat *stat,
 
 static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
 {
-	if (!proc_pid_lookup(dir, dentry, flags))
+	if (!proc_pid_lookup(dentry, flags))
 		return NULL;
 	
 	return proc_lookup(dir, dentry, flags);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] procfs: remove unused parameter in proc_pid_lookup
  2019-01-10 10:10 [PATCH] procfs: remove unused parameter in proc_pid_lookup Zhikang Zhang
@ 2019-01-10 10:10 ` Zhikang Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Zhikang Zhang @ 2019-01-10 10:10 UTC (permalink / raw)
  To: adobriyan; +Cc: linux-kernel, linux-fsdevel, heyunlei

struct inode *dir argument in proc_pid_lookup doesn't needed anymore

Fixes: 0168b9e38c42 ("procfs: switch instantiate_t to d_splice_alias()")

Signed-off-by: Zhikang Zhang <zhangzhikang1@huawei.com>
---
 fs/proc/base.c     | 2 +-
 fs/proc/internal.h | 2 +-
 fs/proc/root.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/proc/base.c b/fs/proc/base.c
index d7fd1ca..ac44398 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -3157,7 +3157,7 @@ static struct dentry *proc_pid_instantiate(struct dentry * dentry,
 	return d_splice_alias(inode, dentry);
 }
 
-struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
+struct dentry *proc_pid_lookup(struct dentry *dentry, unsigned int flags)
 {
 	struct task_struct *task;
 	unsigned tgid;
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 5185d7f..80d55e8 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -161,7 +161,7 @@ extern struct inode *proc_pid_make_inode(struct super_block *, struct task_struc
 extern void pid_update_inode(struct task_struct *, struct inode *);
 extern int pid_delete_dentry(const struct dentry *);
 extern int proc_pid_readdir(struct file *, struct dir_context *);
-extern struct dentry *proc_pid_lookup(struct inode *, struct dentry *, unsigned int);
+extern struct dentry *proc_pid_lookup(struct dentry *, unsigned int);
 extern loff_t mem_lseek(struct file *, loff_t, int);
 
 /* Lookups */
diff --git a/fs/proc/root.c b/fs/proc/root.c
index f4b1a9d..621e6ec 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -154,7 +154,7 @@ static int proc_root_getattr(const struct path *path, struct kstat *stat,
 
 static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
 {
-	if (!proc_pid_lookup(dir, dentry, flags))
+	if (!proc_pid_lookup(dentry, flags))
 		return NULL;
 	
 	return proc_lookup(dir, dentry, flags);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 10:10 [PATCH] procfs: remove unused parameter in proc_pid_lookup Zhikang Zhang
2019-01-10 10:10 ` Zhikang Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).