Lines Matching refs:grant
3409 struct ceph_mds_caps *grant,
3416 int seq = le32_to_cpu(grant->seq);
3417 int newcaps = le32_to_cpu(grant->caps);
3419 u64 size = le64_to_cpu(grant->size);
3420 u64 max_size = le64_to_cpu(grant->max_size);
3476 WARN_ON(cap->cap_id != le64_to_cpu(grant->cap_id));
3491 umode_t mode = le32_to_cpu(grant->mode);
3498 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(grant->uid));
3499 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(grant->gid));
3508 pr_warn_ratelimited("%s: cap grant attempt to change fscrypt_auth on non-I_NEW inode (old len %d new len %d)\n",
3516 set_nlink(inode, le32_to_cpu(grant->nlink));
3522 grant->xattr_len) {
3523 int len = le32_to_cpu(grant->xattr_len);
3524 u64 version = le64_to_cpu(grant->xattr_version);
3541 ceph_decode_timespec64(&mtime, &grant->mtime);
3542 ceph_decode_timespec64(&atime, &grant->atime);
3543 ceph_decode_timespec64(&ctime, &grant->ctime);
3545 le32_to_cpu(grant->time_warp_seq),
3559 ceph_file_layout_from_legacy(&ci->i_layout, &grant->layout);
3572 le32_to_cpu(grant->truncate_seq),
3573 le64_to_cpu(grant->truncate_size),
3599 if ((was_stale || le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) &&
3614 /* revocation, grant, or no-op? */
3642 dout("grant: %s -> %s\n", ceph_cap_string(cap->issued),
3644 /* non-auth MDS is revoking the newly grant caps ? */
3658 if (le32_to_cpu(grant->op) == CEPH_CAP_OP_REVOKE) {
3674 if (le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) {
3680 !(le32_to_cpu(grant->wanted) & CEPH_CAP_ANY_FILE_WR)) {