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

posix-pstat/istat() - bail early if iatt structure is NULL #4357

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

mykaul
Copy link
Contributor

@mykaul mykaul commented May 24, 2024

In some cases, we can return early - when iatt structure is NULL. Specifically, this happens when we call those functions in part of MAKE_INODE_HANDLE() macro - which in some cases is not using that structure.

This saves us few calls. Specifically, we do not need to fetch mdata xattr, which may save us from some lgetxattr() and such.

Updates: #1000
Signed-off-by: Yaniv Kaul [email protected]

In some cases, we can return early - when iatt structure is NULL.
Specifically, this happens when we call those functions in part of
MAKE_INODE_HANDLE() macro - which in some cases is not using that structure.

This saves us few calls. Specifically, we do not need to fetch mdata xattr, which may save
us from some lgetxattr() and such.

Updates: gluster#1000
Signed-off-by: Yaniv Kaul <[email protected]>
@mykaul
Copy link
Contributor Author

mykaul commented May 25, 2024

/run regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant