aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/eattr.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-05 13:15:18 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-05 13:15:18 -0400
commitcca195c5c09b81065018dee39f4013b95bf47502 (patch)
treeac59252852a0b488824645433b8c2017c882e4b3 /fs/gfs2/eattr.h
parent16910427e1eb2a8069708ee24406d2d465381ebd (diff)
[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>
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