Lines Matching refs:grant
3354 struct ceph_mds_caps *grant,
3361 int seq = le32_to_cpu(grant->seq);
3362 int newcaps = le32_to_cpu(grant->caps);
3364 u64 size = le64_to_cpu(grant->size);
3365 u64 max_size = le64_to_cpu(grant->max_size);
3413 WARN_ON(cap->cap_id != le64_to_cpu(grant->cap_id));
3428 inode->i_mode = le32_to_cpu(grant->mode);
3429 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(grant->uid));
3430 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(grant->gid));
3439 set_nlink(inode, le32_to_cpu(grant->nlink));
3446 grant->xattr_len) {
3447 int len = le32_to_cpu(grant->xattr_len);
3448 u64 version = le64_to_cpu(grant->xattr_version);
3465 ceph_decode_timespec64(&mtime, &grant->mtime);
3466 ceph_decode_timespec64(&atime, &grant->atime);
3467 ceph_decode_timespec64(&ctime, &grant->ctime);
3469 le32_to_cpu(grant->time_warp_seq),
3483 ceph_file_layout_from_legacy(&ci->i_layout, &grant->layout);
3496 le32_to_cpu(grant->truncate_seq),
3497 le64_to_cpu(grant->truncate_size),
3523 if ((was_stale || le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) &&
3538 /* revocation, grant, or no-op? */
3563 dout("grant: %s -> %s\n", ceph_cap_string(cap->issued),
3565 /* non-auth MDS is revoking the newly grant caps ? */
3579 if (le32_to_cpu(grant->op) == CEPH_CAP_OP_REVOKE) {
3595 if (le32_to_cpu(grant->op) == CEPH_CAP_OP_IMPORT) {
3601 !(le32_to_cpu(grant->wanted) & CEPH_CAP_ANY_FILE_WR)) {