[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] hw/9pfs: Use v9fs_do_close instead of close
From: |
Aneesh Kumar K.V |
Subject: |
[Qemu-devel] [PATCH 4/6] hw/9pfs: Use v9fs_do_close instead of close |
Date: |
Thu, 25 Aug 2011 20:33:42 +0530 |
we should use the local abstraction instead of
directly calling close.
Signed-off-by: Aneesh Kumar K.V <address@hidden>
---
hw/9pfs/virtio-9p.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c
index 4ba2590..6529216 100644
--- a/hw/9pfs/virtio-9p.c
+++ b/hw/9pfs/virtio-9p.c
@@ -1592,7 +1592,7 @@ static void v9fs_lcreate(void *opaque)
if (err < 0) {
fidp->fid_type = P9_FID_NONE;
if (fidp->fs.fd > 0) {
- close(fidp->fs.fd);
+ v9fs_co_close(pdu->s, fidp->fs.fd);
}
goto out;
}
@@ -2160,7 +2160,7 @@ static void v9fs_create(void *opaque)
if (err < 0) {
fidp->fid_type = P9_FID_NONE;
if (fidp->fs.fd) {
- close(fidp->fs.fd);
+ v9fs_co_close(pdu->s, fidp->fs.fd);
}
goto out;
}
--
1.7.4.1
- [Qemu-devel] [PATCH 0/6] hw/9pfs: Implement file descriptor reclaim in VirtFS server, Aneesh Kumar K.V, 2011/08/25
- [Qemu-devel] [PATCH 2/6] hw/9pfs: Add file descriptor reclaim support, Aneesh Kumar K.V, 2011/08/25
- [Qemu-devel] [PATCH 3/6] hw/9pfs: init fid list properly, Aneesh Kumar K.V, 2011/08/25
- [Qemu-devel] [PATCH 6/6] hw/9pfs: mark directories also as un-reclaimable on unlink, Aneesh Kumar K.V, 2011/08/25
- [Qemu-devel] [PATCH 4/6] hw/9pfs: Use v9fs_do_close instead of close,
Aneesh Kumar K.V <=
- [Qemu-devel] [PATCH 1/6] hw/9pfs: Add reference counting for fid, Aneesh Kumar K.V, 2011/08/25
- [Qemu-devel] [PATCH 5/6] hw/9pfs: Add directory reclaim support, Aneesh Kumar K.V, 2011/08/25