-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Traverse xattrs using a pointer to xattr instead of snprintf() its value #4363
base: devel
Are you sure you want to change the base?
Conversation
The key can be a pointer, pointing to the xattr, instead of copying it. Updates: gluster#1000 Signed-off-by: Yaniv Kaul <[email protected]>
CLANG-FORMAT FAILURE: index 83e295eb8..ceb8f81d4 100644
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
@@ -6045,10 +6045,7 @@ posix_readdirp(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
if (op_ret >= 0) {
op_ret = 0;
- list_for_each_entry(entry, &entries.list, list)
- {
- op_ret++;
- }
+ list_for_each_entry(entry, &entries.list, list) { op_ret++; }
}
STACK_UNWIND_STRICT(readdirp, frame, op_ret, op_errno, &entries, NULL); |
/run regression |
Signed-off-by: Yaniv Kaul <[email protected]>
CLANG-FORMAT FAILURE: index a4223a690..4b8e0e04e 100644
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
@@ -6045,10 +6045,7 @@ posix_readdirp(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
if (op_ret >= 0) {
op_ret = 0;
- list_for_each_entry(entry, &entries.list, list)
- {
- op_ret++;
- }
+ list_for_each_entry(entry, &entries.list, list) { op_ret++; }
}
STACK_UNWIND_STRICT(readdirp, frame, op_ret, op_errno, &entries, NULL); |
/run regression |
0 test(s) failed 1 test(s) generated core 2 test(s) needed retry |
/run regression |
Filed #4369 on the crash in regression, which I think (hope) is not related to this patch. |
0 test(s) failed 1 test(s) generated core 2 test(s) needed retry 1 flaky test(s) marked as success even though they failed |
The key can be a pointer, pointing to the xattr, instead of copying it.
Updates: #1000
Signed-off-by: Yaniv Kaul [email protected]