* [PATCH] 9p: remove unused code in 9p
@ 2020-06-28 7:43 Jianyong Wu
2020-06-28 8:47 ` Dominique Martinet
0 siblings, 1 reply; 2+ messages in thread
From: Jianyong Wu @ 2020-06-28 7:43 UTC (permalink / raw)
To: ericvh, lucho, asmadeus, v9fs-developer
Cc: linux-kernel, Steve.Capper, Kaly.Xin, justin.he, jianyong.wu, wei.chen
These codes have been commented out since 2007 and lay in kernel
since then. So, it's better to remove them.
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
---
fs/9p/vfs_inode.c | 53 -----------------------------------------------
1 file changed, 53 deletions(-)
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index 010869389523..23aed9047efe 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -368,59 +368,6 @@ struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev)
return inode;
}
-/*
-static struct v9fs_fid*
-v9fs_clone_walk(struct v9fs_session_info *v9ses, u32 fid, struct dentry *dentry)
-{
- int err;
- int nfid;
- struct v9fs_fid *ret;
- struct v9fs_fcall *fcall;
-
- nfid = v9fs_get_idpool(&v9ses->fidpool);
- if (nfid < 0) {
- eprintk(KERN_WARNING, "no free fids available\n");
- return ERR_PTR(-ENOSPC);
- }
-
- err = v9fs_t_walk(v9ses, fid, nfid, (char *) dentry->d_name.name,
- &fcall);
-
- if (err < 0) {
- if (fcall && fcall->id == RWALK)
- goto clunk_fid;
-
- PRINT_FCALL_ERROR("walk error", fcall);
- v9fs_put_idpool(nfid, &v9ses->fidpool);
- goto error;
- }
-
- kfree(fcall);
- fcall = NULL;
- ret = v9fs_fid_create(v9ses, nfid);
- if (!ret) {
- err = -ENOMEM;
- goto clunk_fid;
- }
-
- err = v9fs_fid_insert(ret, dentry);
- if (err < 0) {
- v9fs_fid_destroy(ret);
- goto clunk_fid;
- }
-
- return ret;
-
-clunk_fid:
- v9fs_t_clunk(v9ses, nfid);
-
-error:
- kfree(fcall);
- return ERR_PTR(err);
-}
-*/
-
-
/**
* v9fs_clear_inode - release an inode
* @inode: inode to release
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] 9p: remove unused code in 9p
2020-06-28 7:43 [PATCH] 9p: remove unused code in 9p Jianyong Wu
@ 2020-06-28 8:47 ` Dominique Martinet
0 siblings, 0 replies; 2+ messages in thread
From: Dominique Martinet @ 2020-06-28 8:47 UTC (permalink / raw)
To: Jianyong Wu
Cc: ericvh, lucho, v9fs-developer, linux-kernel, Steve.Capper,
Kaly.Xin, justin.he, wei.chen
Jianyong Wu wrote on Sun, Jun 28, 2020:
> These codes have been commented out since 2007 and lay in kernel
> since then. So, it's better to remove them.
>
> Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Thanks, queued for 5.9
--
Dominique
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-28 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 7:43 [PATCH] 9p: remove unused code in 9p Jianyong Wu
2020-06-28 8:47 ` Dominique Martinet
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).