Lines Matching refs:retval
58 int retval = 0; in v9fs_get_acl() local
77 retval = -EIO; in v9fs_get_acl()
85 return retval; in v9fs_get_acl()
119 int retval; in v9fs_set_acl() local
131 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_set_acl()
132 if (retval < 0) in v9fs_set_acl()
144 retval = v9fs_fid_xattr_set(fid, name, buffer, size, 0); in v9fs_set_acl()
147 return retval; in v9fs_set_acl()
152 int retval = 0; in v9fs_acl_chmod() local
159 retval = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in v9fs_acl_chmod()
160 if (retval) in v9fs_acl_chmod()
161 return retval; in v9fs_acl_chmod()
163 retval = v9fs_set_acl(fid, ACL_TYPE_ACCESS, acl); in v9fs_acl_chmod()
166 return retval; in v9fs_acl_chmod()
189 int retval = 0; in v9fs_acl_mode() local
203 retval = __posix_acl_create(&acl, GFP_NOFS, &mode); in v9fs_acl_mode()
204 if (retval < 0) in v9fs_acl_mode()
205 return retval; in v9fs_acl_mode()
206 if (retval > 0) in v9fs_acl_mode()
247 int retval; in v9fs_xattr_set_acl() local
270 retval = posix_acl_valid(inode->i_sb->s_user_ns, acl); in v9fs_xattr_set_acl()
271 if (retval) in v9fs_xattr_set_acl()
283 retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); in v9fs_xattr_set_acl()
284 if (retval) in v9fs_xattr_set_acl()
306 retval = acl ? -EINVAL : 0; in v9fs_xattr_set_acl()
313 retval = v9fs_xattr_set(dentry, handler->name, value, size, flags); in v9fs_xattr_set_acl()
314 if (!retval) in v9fs_xattr_set_acl()
318 return retval; in v9fs_xattr_set_acl()