I find that the developers often just specified the numeric value
when calling a macro which is defined with a parameter for access permission.
As we know, these numeric value for access permission have had the 
corresponding macro,
and that using macro can improve the robustness and readability of the code,
thus, I suggest replacing the numeric parameter with the macro.

Signed-off-by: Chuansheng Liu <[email protected]>
Signed-off-by: Baole Ni <[email protected]>
---
 fs/ocfs2/dlmfs/dlmfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index 47b3b2d..40c4a3a 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -100,7 +100,7 @@ static int param_get_dlmfs_capabilities(char *buffer,
                       strlen(DLMFS_CAPABILITIES) + 1);
 }
 module_param_call(capabilities, param_set_dlmfs_capabilities,
-                 param_get_dlmfs_capabilities, NULL, 0444);
+                 param_get_dlmfs_capabilities, NULL, S_IRUSR | S_IRGRP | 
S_IROTH);
 MODULE_PARM_DESC(capabilities, DLMFS_CAPABILITIES);
 
 
-- 
2.9.2

Reply via email to