-
Notifications
You must be signed in to change notification settings - Fork 526
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
curve-fuse: only update dirty inode metadata #1853
Conversation
df0b981
to
39033e9
Compare
recheck |
2 similar comments
recheck |
recheck |
curvefs/src/client/inode_wrapper.cpp
Outdated
@@ -336,19 +337,25 @@ CURVEFS_ERROR InodeWrapper::UnLinkLocked(uint64_t parent) { | |||
auto err = FlushVolumeExtent(); | |||
if (err != CURVEFS_ERROR::OK) { | |||
LOG(ERROR) << "Flush volume extent failed, inodeid: " | |||
<< inode_.inodeid() << ", error: " << err; | |||
<< inode_.inodeid() << ", error: " << err; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output alignment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
curvefs/src/client/inode_wrapper.cpp
Outdated
<< ", MetaStatusCode = " << ret | ||
<< ", MetaStatusCode_Name = " << MetaStatusCode_Name(ret) | ||
<< ", inodeid = " << inode_.inodeid(); | ||
<< ", MetaStatusCode = " << ret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output alignment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
curvefs/src/client/inode_wrapper.cpp
Outdated
@@ -358,8 +365,8 @@ CURVEFS_ERROR InodeWrapper::UnLinkLocked(uint64_t parent) { | |||
|
|||
CURVEFS_ERROR | |||
InodeWrapper::UpdateInodeStatus(InodeOpenStatusChange statusChange) { | |||
MetaStatusCode ret = | |||
metaClient_->UpdateInodeAttrWithOutNlink(inode_, statusChange); | |||
MetaStatusCode ret = metaClient_->UpdateInodeAttrWithOutNlink( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UpdateInodeStatus this function is not used anymore, you can delete it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix
918325c
to
a65138b
Compare
recheck |
Signed-off-by: Hanqing Wu <[email protected]>
Signed-off-by: Hanqing Wu <[email protected]>
a65138b
to
146a459
Compare
recheck |
2 similar comments
recheck |
recheck |
Signed-off-by: Hanqing Wu [email protected]
What problem does this PR solve?
Issue Number: #1845
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List