Lines Matching refs:grant
3486 struct ceph_mds_caps *grant,
3494 int seq = le32_to_cpu(grant->seq);
3495 int newcaps = le32_to_cpu(grant->caps);
3497 u64 size = le64_to_cpu(grant->size);
3498 u64 max_size = le64_to_cpu(grant->max_size);
3555 WARN_ON(cap->cap_id != le64_to_cpu(grant->cap_id));
3570 umode_t mode = le32_to_cpu(grant->mode);
3577 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(grant->uid));
3578 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(grant->gid));
3589 "cap grant attempt to change fscrypt_auth on non-I_NEW inode (old len %d new len %d)\n",
3597 set_nlink(inode, le32_to_cpu(grant->nlink));
3603 grant->xattr_len) {
3604 int len = le32_to_cpu(grant->xattr_len);
3605 u64 version = le64_to_cpu(grant->xattr_version);
3622 ceph_decode_timespec64(&mtime, &grant->mtime);
3623 ceph_decode_timespec64(&atime, &grant->atime);
3624 ceph_decode_timespec64(&ctime, &grant->ctime);
3626 le32_to_cpu(grant->time_warp_seq),
3640 ceph_file_layout_from_legacy(&ci->i_layout, &grant->layout);
3653 le32_to_cpu(grant->truncate_seq),
3654 le64_to_cpu(grant->truncate_size),
3679 if ((was_stale || le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) &&
3694 /* revocation, grant, or no-op? */
3722 doutc(cl, "grant: %s -> %s\n", ceph_cap_string(cap->issued),
3724 /* non-auth MDS is revoking the newly grant caps ? */
3738 if (le32_to_cpu(grant->op) == CEPH_CAP_OP_REVOKE) {
3754 if (le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) {
3760 !(le32_to_cpu(grant->wanted) & CEPH_CAP_ANY_FILE_WR)) {