[GFS2] Extended attribute code style changes
As per Jan Engelhardt's request and also a few of my own. It has
been possible to add a few most const to the code as a result of
the change in gfs2_ea_name2type.
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
diff --git a/fs/gfs2/eattr.h b/fs/gfs2/eattr.h
index cb7c2d8..ffa6594 100644
--- a/fs/gfs2/eattr.h
+++ b/fs/gfs2/eattr.h
@@ -46,7 +46,7 @@
#define GFS2_ERF_MODE 0x80000000
struct gfs2_ea_request {
- char *er_name;
+ const char *er_name;
char *er_data;
unsigned int er_name_len;
unsigned int er_data_len;
@@ -87,13 +87,13 @@
{
switch (ea->ea_type) {
case GFS2_EATYPE_USR:
- return (5 + (ea->ea_name_len + 1));
+ return 5 + ea->ea_name_len + 1;
case GFS2_EATYPE_SYS:
- return (7 + (ea->ea_name_len + 1));
+ return 7 + ea->ea_name_len + 1;
case GFS2_EATYPE_SECURITY:
- return (9 + (ea->ea_name_len + 1));
+ return 9 + ea->ea_name_len + 1;
default:
- return (0);
+ return 0;
}
}