Skip to content

Optimize implementation of lookup() for passthroughfs#169

Merged
bergwolf merged 3 commits intocloud-hypervisor:masterfrom
jiangliu:ptfs-lookup
Nov 2, 2023
Merged

Optimize implementation of lookup() for passthroughfs#169
bergwolf merged 3 commits intocloud-hypervisor:masterfrom
jiangliu:ptfs-lookup

Conversation

@jiangliu
Copy link
Contributor

Optimize implementation of lookup() for passthroughfs.

@jiangliu jiangliu force-pushed the ptfs-lookup branch 23 times, most recently from 868f62c to 217a8aa Compare November 1, 2023 07:59
Optimize implementation of do_lookup() by:
- use statx() instead of fsstat64() when possible to get stat with mount id
- create openable handle on demand, avoid unnecessary operations
- remove InodeStat, using StatExt instead
- remove function stat() and open_proc_file()

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Optimize implementation of open_inode() by avoid double opening
in case for FileHandle.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Make use of helpers from util.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@bergwolf bergwolf merged commit 7a630e5 into cloud-hypervisor:master Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants