diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-08 21:07:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-24 08:17:06 -0400 |
commit | 281eede0328c84a8f20e0e85b807d5b51c3de4f2 (patch) | |
tree | 9eb0184c7066f27593f2fd75db1593bf688c330f /fs/reiserfs/xattr_acl.c | |
parent | 7a77b15d9294749809de918e24bebc39e0fbc9ab (diff) |
switch reiserfs to inode->i_acl
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs/xattr_acl.c')
-rw-r--r-- | fs/reiserfs/xattr_acl.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/reiserfs/xattr_acl.c b/fs/reiserfs/xattr_acl.c index 7b3aeb9327d3..b6e473faa8b8 100644 --- a/fs/reiserfs/xattr_acl.c +++ b/fs/reiserfs/xattr_acl.c | |||
@@ -223,16 +223,15 @@ struct posix_acl *reiserfs_get_acl(struct inode *inode, int type) | |||
223 | struct posix_acl *acl, **p_acl; | 223 | struct posix_acl *acl, **p_acl; |
224 | int size; | 224 | int size; |
225 | int retval; | 225 | int retval; |
226 | struct reiserfs_inode_info *reiserfs_i = REISERFS_I(inode); | ||
227 | 226 | ||
228 | switch (type) { | 227 | switch (type) { |
229 | case ACL_TYPE_ACCESS: | 228 | case ACL_TYPE_ACCESS: |
230 | name = POSIX_ACL_XATTR_ACCESS; | 229 | name = POSIX_ACL_XATTR_ACCESS; |
231 | p_acl = &reiserfs_i->i_acl_access; | 230 | p_acl = &inode->i_acl; |
232 | break; | 231 | break; |
233 | case ACL_TYPE_DEFAULT: | 232 | case ACL_TYPE_DEFAULT: |
234 | name = POSIX_ACL_XATTR_DEFAULT; | 233 | name = POSIX_ACL_XATTR_DEFAULT; |
235 | p_acl = &reiserfs_i->i_acl_default; | 234 | p_acl = &inode->i_default_acl; |
236 | break; | 235 | break; |
237 | default: | 236 | default: |
238 | return ERR_PTR(-EINVAL); | 237 | return ERR_PTR(-EINVAL); |
@@ -288,7 +287,6 @@ reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, | |||
288 | struct posix_acl **p_acl; | 287 | struct posix_acl **p_acl; |
289 | size_t size = 0; | 288 | size_t size = 0; |
290 | int error; | 289 | int error; |
291 | struct reiserfs_inode_info *reiserfs_i = REISERFS_I(inode); | ||
292 | 290 | ||
293 | if (S_ISLNK(inode->i_mode)) | 291 | if (S_ISLNK(inode->i_mode)) |
294 | return -EOPNOTSUPP; | 292 | return -EOPNOTSUPP; |
@@ -296,7 +294,7 @@ reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, | |||
296 | switch (type) { | 294 | switch (type) { |
297 | case ACL_TYPE_ACCESS: | 295 | case ACL_TYPE_ACCESS: |
298 | name = POSIX_ACL_XATTR_ACCESS; | 296 | name = POSIX_ACL_XATTR_ACCESS; |
299 | p_acl = &reiserfs_i->i_acl_access; | 297 | p_acl = &inode->i_acl; |
300 | if (acl) { | 298 | if (acl) { |
301 | mode_t mode = inode->i_mode; | 299 | mode_t mode = inode->i_mode; |
302 | error = posix_acl_equiv_mode(acl, &mode); | 300 | error = posix_acl_equiv_mode(acl, &mode); |
@@ -311,7 +309,7 @@ reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, | |||
311 | break; | 309 | break; |
312 | case ACL_TYPE_DEFAULT: | 310 | case ACL_TYPE_DEFAULT: |
313 | name = POSIX_ACL_XATTR_DEFAULT; | 311 | name = POSIX_ACL_XATTR_DEFAULT; |
314 | p_acl = &reiserfs_i->i_acl_default; | 312 | p_acl = &inode->i_default_acl; |
315 | if (!S_ISDIR(inode->i_mode)) | 313 | if (!S_ISDIR(inode->i_mode)) |
316 | return acl ? -EACCES : 0; | 314 | return acl ? -EACCES : 0; |
317 | break; | 315 | break; |