diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-23 18:37:50 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-08-01 02:09:42 -0400 |
| commit | d3fb612076eebec6f67257db0c7a9666ac7e5892 (patch) | |
| tree | 5265fca258a74ffa75b845998492abb9446db72c /fs/reiserfs | |
| parent | 782b94cdf577b4df1feb376f372dccc28e66a771 (diff) | |
switch posix_acl_create() to umode_t *
so we can pass &inode->i_mode to it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/reiserfs')
| -rw-r--r-- | fs/reiserfs/xattr_acl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/reiserfs/xattr_acl.c b/fs/reiserfs/xattr_acl.c index 7362cf4c946a..89ebc77e0e9a 100644 --- a/fs/reiserfs/xattr_acl.c +++ b/fs/reiserfs/xattr_acl.c | |||
| @@ -354,8 +354,6 @@ reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, | |||
| 354 | return PTR_ERR(acl); | 354 | return PTR_ERR(acl); |
| 355 | 355 | ||
| 356 | if (acl) { | 356 | if (acl) { |
| 357 | mode_t mode = inode->i_mode; | ||
| 358 | |||
| 359 | /* Copy the default ACL to the default ACL of a new directory */ | 357 | /* Copy the default ACL to the default ACL of a new directory */ |
| 360 | if (S_ISDIR(inode->i_mode)) { | 358 | if (S_ISDIR(inode->i_mode)) { |
| 361 | err = reiserfs_set_acl(th, inode, ACL_TYPE_DEFAULT, | 359 | err = reiserfs_set_acl(th, inode, ACL_TYPE_DEFAULT, |
| @@ -366,12 +364,10 @@ reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, | |||
| 366 | 364 | ||
| 367 | /* Now we reconcile the new ACL and the mode, | 365 | /* Now we reconcile the new ACL and the mode, |
| 368 | potentially modifying both */ | 366 | potentially modifying both */ |
| 369 | err = posix_acl_create(&acl, GFP_NOFS, &mode); | 367 | err = posix_acl_create(&acl, GFP_NOFS, &inode->i_mode); |
| 370 | if (err < 0) | 368 | if (err < 0) |
| 371 | return err; | 369 | return err; |
| 372 | 370 | ||
| 373 | inode->i_mode = mode; | ||
| 374 | |||
| 375 | /* If we need an ACL.. */ | 371 | /* If we need an ACL.. */ |
| 376 | if (err > 0) | 372 | if (err > 0) |
| 377 | err = reiserfs_set_acl(th, inode, ACL_TYPE_ACCESS, acl); | 373 | err = reiserfs_set_acl(th, inode, ACL_TYPE_ACCESS, acl); |
