diff options
Diffstat (limited to 'fs/9p/vfs_inode_dotl.c')
-rw-r--r-- | fs/9p/vfs_inode_dotl.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 276f4a69ecd4..9a26dce5a99f 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -287,7 +287,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode, | |||
287 | goto error; | 287 | goto error; |
288 | 288 | ||
289 | /* Now set the ACL based on the default value */ | 289 | /* Now set the ACL based on the default value */ |
290 | v9fs_set_create_acl(dentry, dacl, pacl); | 290 | v9fs_set_create_acl(dentry, &dacl, &pacl); |
291 | 291 | ||
292 | v9inode = V9FS_I(inode); | 292 | v9inode = V9FS_I(inode); |
293 | mutex_lock(&v9inode->v_mutex); | 293 | mutex_lock(&v9inode->v_mutex); |
@@ -328,6 +328,7 @@ error: | |||
328 | err_clunk_old_fid: | 328 | err_clunk_old_fid: |
329 | if (ofid) | 329 | if (ofid) |
330 | p9_client_clunk(ofid); | 330 | p9_client_clunk(ofid); |
331 | v9fs_set_create_acl(NULL, &dacl, &pacl); | ||
331 | return err; | 332 | return err; |
332 | } | 333 | } |
333 | 334 | ||
@@ -421,12 +422,13 @@ static int v9fs_vfs_mkdir_dotl(struct inode *dir, | |||
421 | d_instantiate(dentry, inode); | 422 | d_instantiate(dentry, inode); |
422 | } | 423 | } |
423 | /* Now set the ACL based on the default value */ | 424 | /* Now set the ACL based on the default value */ |
424 | v9fs_set_create_acl(dentry, dacl, pacl); | 425 | v9fs_set_create_acl(dentry, &dacl, &pacl); |
425 | inc_nlink(dir); | 426 | inc_nlink(dir); |
426 | v9fs_invalidate_inode_attr(dir); | 427 | v9fs_invalidate_inode_attr(dir); |
427 | error: | 428 | error: |
428 | if (fid) | 429 | if (fid) |
429 | p9_client_clunk(fid); | 430 | p9_client_clunk(fid); |
431 | v9fs_set_create_acl(NULL, &dacl, &pacl); | ||
430 | return err; | 432 | return err; |
431 | } | 433 | } |
432 | 434 | ||
@@ -826,10 +828,11 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode, | |||
826 | d_instantiate(dentry, inode); | 828 | d_instantiate(dentry, inode); |
827 | } | 829 | } |
828 | /* Now set the ACL based on the default value */ | 830 | /* Now set the ACL based on the default value */ |
829 | v9fs_set_create_acl(dentry, dacl, pacl); | 831 | v9fs_set_create_acl(dentry, &dacl, &pacl); |
830 | error: | 832 | error: |
831 | if (fid) | 833 | if (fid) |
832 | p9_client_clunk(fid); | 834 | p9_client_clunk(fid); |
835 | v9fs_set_create_acl(NULL, &dacl, &pacl); | ||
833 | return err; | 836 | return err; |
834 | } | 837 | } |
835 | 838 | ||
@@ -914,7 +917,7 @@ const struct inode_operations v9fs_dir_inode_operations_dotl = { | |||
914 | .getxattr = generic_getxattr, | 917 | .getxattr = generic_getxattr, |
915 | .removexattr = generic_removexattr, | 918 | .removexattr = generic_removexattr, |
916 | .listxattr = v9fs_listxattr, | 919 | .listxattr = v9fs_listxattr, |
917 | .check_acl = v9fs_check_acl, | 920 | .get_acl = v9fs_iop_get_acl, |
918 | }; | 921 | }; |
919 | 922 | ||
920 | const struct inode_operations v9fs_file_inode_operations_dotl = { | 923 | const struct inode_operations v9fs_file_inode_operations_dotl = { |
@@ -924,7 +927,7 @@ const struct inode_operations v9fs_file_inode_operations_dotl = { | |||
924 | .getxattr = generic_getxattr, | 927 | .getxattr = generic_getxattr, |
925 | .removexattr = generic_removexattr, | 928 | .removexattr = generic_removexattr, |
926 | .listxattr = v9fs_listxattr, | 929 | .listxattr = v9fs_listxattr, |
927 | .check_acl = v9fs_check_acl, | 930 | .get_acl = v9fs_iop_get_acl, |
928 | }; | 931 | }; |
929 | 932 | ||
930 | const struct inode_operations v9fs_symlink_inode_operations_dotl = { | 933 | const struct inode_operations v9fs_symlink_inode_operations_dotl = { |