-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Prefix all refcount functions with zfs_ #7963
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7963 +/- ##
==========================================
- Coverage 78.64% 78.47% -0.18%
==========================================
Files 377 377
Lines 114014 114018 +4
==========================================
- Hits 89668 89475 -193
- Misses 24346 24543 +197
Continue to review full report at Codecov.
|
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.
Looks good, thanks for the speedy follow up PR.
include/sys/refcount.h
Outdated
| int64_t refcount_count(zfs_refcount_t *rc); | ||
| void zfs_refcount_create(zfs_refcount_t *rc); | ||
| void zfs_refcount_create_untracked(zfs_refcount_t *rc); | ||
| void zfs_refcount_create_tracked(zfs_refcount_t *rc); |
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.
While you're here, if you'd like to remove the argument names (throughout this header file), that would be good too.
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.
Sure, I can do that. It will have to wait until afternoon though (in about 7 hours).
Recent changes in the Linux kernel made it necessary to prefix the refcount_add() function with zfs_ due to a name collision. To bring the other functions in line with that and to avoid future collisions, prefix the other refcount functions as well. Signed-off-by: Tim Schumacher <timschumi@gmx.de>
Recent changes in the Linux kernel made it necessary to prefix the refcount_add() function with zfs_ due to a name collision. To bring the other functions in line with that and to avoid future collisions, prefix the other refcount functions as well. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Schumacher <timschumi@gmx.de> Closes openzfs#7963
Recent changes in the Linux kernel made it necessary to prefix the refcount_add() function with zfs_ due to a name collision. To bring the other functions in line with that and to avoid future collisions, prefix the other refcount functions as well. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Schumacher <timschumi@gmx.de> Closes openzfs#7963
Recent changes in the Linux kernel made it necessary to prefix the refcount_add() function with zfs_ due to a name collision. To bring the other functions in line with that and to avoid future collisions, prefix the other refcount functions as well. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Schumacher <timschumi@gmx.de> Closes #7963
Recent changes in the Linux kernel made it necessary to prefix the refcount_add() function with zfs_ due to a name collision. To bring the other functions in line with that and to avoid future collisions, prefix the other refcount functions as well. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Schumacher <timschumi@gmx.de> Closes openzfs#7963
Motivation and Context
This brings refcount function naming in line with the zfs_refcount_add() method, which was
changed for Linux 4.19 compatibility. It should also prevent future collisions in case any other
functions get added.
Description
Prefixed every function definition and call with zfs_ and reformatted lines that were longer
than 80 chars after that.
How Has This Been Tested?
Compiled and tested with Linux 4.18.8 and 4.19.0-rc5. Ran zloop for about a hour and a half.
Types of changes
Checklist:
Signed-off-by.