staging: lustre: Fixed the parenthesis
PATCH 1/1 staging: lustre: Fixed the parenthesis
The parentehsis are fixed in the macro for the ldlm lock to set and clear the flags.
--- drivers/staging/lustre/lustre/include/lustre_dlm_flags.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h +2 -2
@@ -365,10 +365,10 @@#define LDLM_TEST_FLAG (_l, _b) (((_l)->l_flags & (_b)) != 0)/** set a ldlm_lock flag bit */ -#define LDLM_SET_FLAG (_l, _b) (((_l)->l_flags |= (_b)) +#define LDLM_SET_FLAG (_l, _b) ((_l)->l_flags |= (_b))/** clear a ldlm_lock flag bit */ -#define LDLM_CLEAR_FLAG (_l, _b) (((_l)->l_flags &= ~(_b)) +#define LDLM_CLEAR_FLAG (_l, _b) ((_l)->l_flags &= ~(_b))/** Mask of flags inherited from parent lock when doing intents. */ #define LDLM_INHERIT_FLAGS LDLM_FL_INHERIT_MASK
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 2 lines · Shalin Mehta
The parentehsis are fixed in the macro for the ldlm lock to set and clear the flags.
"fixed" in what way? Did you test-build this patch? Also, you mispelled a word here...
thanks,
greg k-h
Quoted 6 lines · Greg KH
Quoted 2 lines · Shalin Mehta
The parentehsis are fixed in the macro for the ldlm lock to set and clear the flags.
"fixed" in what way? Did you test-build this patch? Also, you mispelled a word here?
The fix in the patch is to make sure number of parenthesis matches, as is it appears there's one more opening one than the closing.
The original patch that add this had an error somehow, but back then none of the users were later introduced, so the bug is "hidden" until first user actually appears.
Compiles work with or without this fix as the result (I also just checked just to be sure).
Quoted 15 lines · Shalin Mehta
The parentehsis are fixed in the macro for the ldlm lock to set and clear the flags.
Signed-off-by Shalin Mehta <[email protected]>---
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/lustre/lustre/include/lustre_dlm_flags.h +0
-0@@ -365,10 +365,10 @@#define LDLM_TEST_FLAG (_l, _b) (((_l)->l_flags & (_b)) != 0)
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h line 374
Quoted 10 lines
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h +2
-2/** set a ldlm_lock flag bit */ -#define LDLM_SET_FLAG (_l, _b) (((_l)->l_flags |= (_b)) +#define LDLM_SET_FLAG (_l, _b) ((_l)->l_flags |= (_b))/** clear a ldlm_lock flag bit */ -#define LDLM_CLEAR_FLAG (_l, _b) (((_l)->l_flags &= ~(_b)) +#define LDLM_CLEAR_FLAG (_l, _b) ((_l)->l_flags &= ~(_b))/** Mask of flags inherited from parent lock when doing intents. */ #define LDLM_INHERIT_FLAGS LDLM_FL_INHERIT_MASK
Hello,
Should I send this patch again due the spelling mistake in the patch description?
Thanks,
Shalin
Quoted 31 lines · Oleg
Quoted 15 lines · Shalin Mehta
The parentehsis are fixed in the macro for the ldlm lock to set and clear the flags.
Signed-off-by Shalin Mehta <[email protected]>---
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/lustre/lustre/include/lustre_dlm_flags.h +0
-0@@ -365,10 +365,10 @@#define LDLM_TEST_FLAG (_l, _b) (((_l)->l_flags & (_b)) != 0)drivers/staging/lustre/lustre/include/lustre_dlm_flags.h line 374
Quoted 10 lines
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h +2
-2/** set a ldlm_lock flag bit */ -#define LDLM_SET_FLAG (_l, _b) (((_l)->l_flags |= (_b)) +#define LDLM_SET_FLAG (_l, _b) ((_l)->l_flags |= (_b))/** clear a ldlm_lock flag bit */ -#define LDLM_CLEAR_FLAG (_l, _b) (((_l)->l_flags &= ~(_b)) +#define LDLM_CLEAR_FLAG (_l, _b) ((_l)->l_flags &= ~(_b))/** Mask of flags inherited from parent lock when doing intents. */ #define LDLM_INHERIT_FLAGS LDLM_FL_INHERIT_MASKAcked-by Oleg Drokin <[email protected]>
Quoted 5 lines · shalin mehta
Hello,
Should I send this patch again due the spelling mistake in the patch description?
Yes. And put what Oleg Drokin said about it worked because there were no users in the changelog.
regards,
dan carpenter