Skip to content

Commit aab6c87

Browse files
jongwumartinetd
authored andcommitted
9p: remove unused code in 9p
These codes have been commented out since 2007 and lay in kernel since then. So, it's better to remove them. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jianyong Wu <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
1 parent 6db6ea7 commit aab6c87

File tree

1 file changed

+0
-53
lines changed

1 file changed

+0
-53
lines changed

fs/9p/vfs_inode.c

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -368,59 +368,6 @@ struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev)
368368
return inode;
369369
}
370370

371-
/*
372-
static struct v9fs_fid*
373-
v9fs_clone_walk(struct v9fs_session_info *v9ses, u32 fid, struct dentry *dentry)
374-
{
375-
int err;
376-
int nfid;
377-
struct v9fs_fid *ret;
378-
struct v9fs_fcall *fcall;
379-
380-
nfid = v9fs_get_idpool(&v9ses->fidpool);
381-
if (nfid < 0) {
382-
eprintk(KERN_WARNING, "no free fids available\n");
383-
return ERR_PTR(-ENOSPC);
384-
}
385-
386-
err = v9fs_t_walk(v9ses, fid, nfid, (char *) dentry->d_name.name,
387-
&fcall);
388-
389-
if (err < 0) {
390-
if (fcall && fcall->id == RWALK)
391-
goto clunk_fid;
392-
393-
PRINT_FCALL_ERROR("walk error", fcall);
394-
v9fs_put_idpool(nfid, &v9ses->fidpool);
395-
goto error;
396-
}
397-
398-
kfree(fcall);
399-
fcall = NULL;
400-
ret = v9fs_fid_create(v9ses, nfid);
401-
if (!ret) {
402-
err = -ENOMEM;
403-
goto clunk_fid;
404-
}
405-
406-
err = v9fs_fid_insert(ret, dentry);
407-
if (err < 0) {
408-
v9fs_fid_destroy(ret);
409-
goto clunk_fid;
410-
}
411-
412-
return ret;
413-
414-
clunk_fid:
415-
v9fs_t_clunk(v9ses, nfid);
416-
417-
error:
418-
kfree(fcall);
419-
return ERR_PTR(err);
420-
}
421-
*/
422-
423-
424371
/**
425372
* v9fs_clear_inode - release an inode
426373
* @inode: inode to release

0 commit comments

Comments
 (0)