aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/eattr.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/eattr.h')
-rw-r--r--fs/gfs2/eattr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/eattr.h b/fs/gfs2/eattr.h
index cb7c2d846765..ffa65947d686 100644
--- a/fs/gfs2/eattr.h
+++ b/fs/gfs2/eattr.h
@@ -46,7 +46,7 @@ ALIGN(sizeof(struct gfs2_ea_header) + (er)->er_name_len + \
46#define GFS2_ERF_MODE 0x80000000 46#define GFS2_ERF_MODE 0x80000000
47 47
48struct gfs2_ea_request { 48struct gfs2_ea_request {
49 char *er_name; 49 const char *er_name;
50 char *er_data; 50 char *er_data;
51 unsigned int er_name_len; 51 unsigned int er_name_len;
52 unsigned int er_data_len; 52 unsigned int er_data_len;
@@ -87,13 +87,13 @@ static inline unsigned int gfs2_ea_strlen(struct gfs2_ea_header *ea)
87{ 87{
88 switch (ea->ea_type) { 88 switch (ea->ea_type) {
89 case GFS2_EATYPE_USR: 89 case GFS2_EATYPE_USR:
90 return (5 + (ea->ea_name_len + 1)); 90 return 5 + ea->ea_name_len + 1;
91 case GFS2_EATYPE_SYS: 91 case GFS2_EATYPE_SYS:
92 return (7 + (ea->ea_name_len + 1)); 92 return 7 + ea->ea_name_len + 1;
93 case GFS2_EATYPE_SECURITY: 93 case GFS2_EATYPE_SECURITY:
94 return (9 + (ea->ea_name_len + 1)); 94 return 9 + ea->ea_name_len + 1;
95 default: 95 default:
96 return (0); 96 return 0;
97 } 97 }
98} 98}
99 99