diff options
author | Fabio M. Di Nitto <fabbione@ubuntu.com> | 2007-11-28 10:22:09 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-01-25 03:08:13 -0500 |
commit | bcd405599faa16cf32a3d3f1ce6a1e12cb37fede (patch) | |
tree | 216771f3a69086c8ccafa58a6d4449926f455336 /fs/gfs2 | |
parent | 6a69a23f7df18f39e4a084e10b62ff4a144b05a5 (diff) |
[GFS2] Remove unrequired code
Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/eaops.c | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/fs/gfs2/eaops.c b/fs/gfs2/eaops.c index 14fbd95fd664..f114ba2b3557 100644 --- a/fs/gfs2/eaops.c +++ b/fs/gfs2/eaops.c | |||
@@ -56,21 +56,6 @@ unsigned int gfs2_ea_name2type(const char *name, const char **truncated_name) | |||
56 | return type; | 56 | return type; |
57 | } | 57 | } |
58 | 58 | ||
59 | static int user_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) | ||
60 | { | ||
61 | return gfs2_ea_get_i(ip, er); | ||
62 | } | ||
63 | |||
64 | static int user_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er) | ||
65 | { | ||
66 | return gfs2_ea_set_i(ip, er); | ||
67 | } | ||
68 | |||
69 | static int user_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) | ||
70 | { | ||
71 | return gfs2_ea_remove_i(ip, er); | ||
72 | } | ||
73 | |||
74 | static int system_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) | 59 | static int system_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) |
75 | { | 60 | { |
76 | if (!GFS2_ACL_IS_ACCESS(er->er_name, er->er_name_len) && | 61 | if (!GFS2_ACL_IS_ACCESS(er->er_name, er->er_name_len) && |
@@ -143,25 +128,10 @@ static int system_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) | |||
143 | return gfs2_ea_remove_i(ip, er); | 128 | return gfs2_ea_remove_i(ip, er); |
144 | } | 129 | } |
145 | 130 | ||
146 | static int security_eo_get(struct gfs2_inode *ip, struct gfs2_ea_request *er) | ||
147 | { | ||
148 | return gfs2_ea_get_i(ip, er); | ||
149 | } | ||
150 | |||
151 | static int security_eo_set(struct gfs2_inode *ip, struct gfs2_ea_request *er) | ||
152 | { | ||
153 | return gfs2_ea_set_i(ip, er); | ||
154 | } | ||
155 | |||
156 | static int security_eo_remove(struct gfs2_inode *ip, struct gfs2_ea_request *er) | ||
157 | { | ||
158 | return gfs2_ea_remove_i(ip, er); | ||
159 | } | ||
160 | |||
161 | static const struct gfs2_eattr_operations gfs2_user_eaops = { | 131 | static const struct gfs2_eattr_operations gfs2_user_eaops = { |
162 | .eo_get = user_eo_get, | 132 | .eo_get = gfs2_ea_get_i, |
163 | .eo_set = user_eo_set, | 133 | .eo_set = gfs2_ea_set_i, |
164 | .eo_remove = user_eo_remove, | 134 | .eo_remove = gfs2_ea_remove_i, |
165 | .eo_name = "user", | 135 | .eo_name = "user", |
166 | }; | 136 | }; |
167 | 137 | ||
@@ -173,9 +143,9 @@ const struct gfs2_eattr_operations gfs2_system_eaops = { | |||
173 | }; | 143 | }; |
174 | 144 | ||
175 | static const struct gfs2_eattr_operations gfs2_security_eaops = { | 145 | static const struct gfs2_eattr_operations gfs2_security_eaops = { |
176 | .eo_get = security_eo_get, | 146 | .eo_get = gfs2_ea_get_i, |
177 | .eo_set = security_eo_set, | 147 | .eo_set = gfs2_ea_set_i, |
178 | .eo_remove = security_eo_remove, | 148 | .eo_remove = gfs2_ea_remove_i, |
179 | .eo_name = "security", | 149 | .eo_name = "security", |
180 | }; | 150 | }; |
181 | 151 | ||