Lines Matching refs:inode

19 static inline void ceph_set_cached_acl(struct inode *inode,  in ceph_set_cached_acl()  argument
22 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_set_cached_acl()
26 set_cached_acl(inode, type, acl); in ceph_set_cached_acl()
28 forget_cached_acl(inode, type); in ceph_set_cached_acl()
32 struct posix_acl *ceph_get_acl(struct inode *inode, int type, bool rcu) in ceph_get_acl() argument
55 size = __ceph_getxattr(inode, name, "", 0); in ceph_get_acl()
60 size = __ceph_getxattr(inode, name, value, size); in ceph_get_acl()
76 ceph_vinop(inode), size); in ceph_get_acl()
83 ceph_set_cached_acl(inode, type, acl); in ceph_get_acl()
95 struct inode *inode = d_inode(dentry); in ceph_set_acl() local
96 struct timespec64 old_ctime = inode_get_ctime(inode); in ceph_set_acl()
97 umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; in ceph_set_acl()
99 if (ceph_snap(inode) != CEPH_NOSNAP) { in ceph_set_acl()
108 ret = posix_acl_update_mode(&nop_mnt_idmap, inode, in ceph_set_acl()
115 if (!S_ISDIR(inode->i_mode)) { in ceph_set_acl()
140 newattrs.ia_ctime = current_time(inode); in ceph_set_acl()
143 ret = __ceph_setattr(inode, &newattrs, NULL); in ceph_set_acl()
148 ret = __ceph_setxattr(inode, name, value, size, 0); in ceph_set_acl()
154 __ceph_setattr(inode, &newattrs, NULL); in ceph_set_acl()
159 ceph_set_cached_acl(inode, type, acl); in ceph_set_acl()
167 int ceph_pre_init_acls(struct inode *dir, umode_t *mode, in ceph_pre_init_acls()
257 void ceph_init_inode_acls(struct inode *inode, struct ceph_acl_sec_ctx *as_ctx) in ceph_init_inode_acls() argument
259 if (!inode) in ceph_init_inode_acls()
261 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl); in ceph_init_inode_acls()
262 ceph_set_cached_acl(inode, ACL_TYPE_DEFAULT, as_ctx->default_acl); in ceph_init_inode_acls()