Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize implementation of lookup() for passthroughfs #169

Merged
merged 3 commits into from
Nov 2, 2023

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 <[email protected]>
Optimize implementation of open_inode() by avoid double opening
in case for FileHandle.

Signed-off-by: Jiang Liu <[email protected]>
Make use of helpers from util.

Signed-off-by: Jiang Liu <[email protected]>
@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