summaryrefslogtreecommitdiff
path: root/hw/9pfs/codir.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-05-18 15:40:57 +0530
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-08-25 20:16:41 +0530
commit7a46274529c2a1866e4344b4385739db674d6a35 (patch)
treefc525a06dc10ee2edb81f5c7f4f1b5d24ab37f95 /hw/9pfs/codir.c
parent84dfb926e508aeedd5088a4f029464bf2d5b3791 (diff)
downloadqemu-7a46274529c2a1866e4344b4385739db674d6a35.tar.gz
qemu-7a46274529c2a1866e4344b4385739db674d6a35.tar.bz2
qemu-7a46274529c2a1866e4344b4385739db674d6a35.zip
hw/9pfs: Add file descriptor reclaim support
[M. Mohan Kumar <mohan@in.ibm.com> removed some unused variables] Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/codir.c')
-rw-r--r--hw/9pfs/codir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/9pfs/codir.c b/hw/9pfs/codir.c
index 3a257b9027..86adc87adc 100644
--- a/hw/9pfs/codir.c
+++ b/hw/9pfs/codir.c
@@ -100,12 +100,10 @@ int v9fs_co_opendir(V9fsState *s, V9fsFidState *fidp)
return err;
}
-int v9fs_co_closedir(V9fsState *s, V9fsFidState *fidp)
+int v9fs_co_closedir(V9fsState *s, DIR *dir)
{
int err;
- DIR *dir;
- dir = fidp->fs.dir;
v9fs_co_run_in_worker(
{
err = s->ops->closedir(&s->ctx, dir);