diff options
author | Richard Henderson | 2021-10-27 20:45:11 +0200 |
---|---|---|
committer | Richard Henderson | 2021-10-27 20:45:18 +0200 |
commit | c52d69e7dbaaed0ffdef8125e79218672c30161d (patch) | |
tree | faf814a00e86fa51c9a8f374055bb3669c808442 /fsdev/file-op-9p.h | |
parent | Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-10-27' into ... (diff) | |
parent | 9pfs: use P9Array in v9fs_walk() (diff) | |
download | qemu-c52d69e7dbaaed0ffdef8125e79218672c30161d.tar.gz qemu-c52d69e7dbaaed0ffdef8125e79218672c30161d.tar.xz qemu-c52d69e7dbaaed0ffdef8125e79218672c30161d.zip |
Merge remote-tracking branch 'remotes/cschoenebeck/tags/pull-9p-20211027' into staging
9pfs: performance fix and cleanup
* First patch fixes suboptimal I/O performance on guest due to previously
incorrect block size being transmitted to 9p client.
* Subsequent patches are cleanup ones intended to reduce code complexity.
* remotes/cschoenebeck/tags/pull-9p-20211027:
9pfs: use P9Array in v9fs_walk()
9pfs: make V9fsPath usable via P9Array API
9pfs: make V9fsString usable via P9Array API
fsdev/p9array.h: check scalar type in P9ARRAY_NEW()
9pfs: introduce P9Array
9pfs: simplify blksize_to_iounit()
9pfs: deduplicate iounit code
9pfs: fix wrong I/O block size in Rgetattr
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'fsdev/file-op-9p.h')
-rw-r--r-- | fsdev/file-op-9p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index 42f677cf38..8fd89f0447 100644 --- a/fsdev/file-op-9p.h +++ b/fsdev/file-op-9p.h @@ -18,6 +18,7 @@ #include <utime.h> #include <sys/vfs.h> #include "qemu-fsdev-throttle.h" +#include "p9array.h" #define SM_LOCAL_MODE_BITS 0600 #define SM_LOCAL_DIR_MODE_BITS 0700 @@ -105,6 +106,7 @@ struct V9fsPath { uint16_t size; char *data; }; +P9ARRAY_DECLARE_TYPE(V9fsPath); typedef union V9fsFidOpenState V9fsFidOpenState; |