Lines Matching refs:grant
2278 static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant,
2286 unsigned seq = le32_to_cpu(grant->seq);
2287 unsigned issue_seq = le32_to_cpu(grant->issue_seq);
2288 int newcaps = le32_to_cpu(grant->caps);
2290 u64 size = le64_to_cpu(grant->size);
2291 u64 max_size = le64_to_cpu(grant->max_size);
2334 inode->i_mode = le32_to_cpu(grant->mode);
2335 inode->i_uid = le32_to_cpu(grant->uid);
2336 inode->i_gid = le32_to_cpu(grant->gid);
2342 inode->i_nlink = le32_to_cpu(grant->nlink);
2344 if ((issued & CEPH_CAP_XATTR_EXCL) == 0 && grant->xattr_len) {
2345 int len = le32_to_cpu(grant->xattr_len);
2346 u64 version = le64_to_cpu(grant->xattr_version);
2360 le32_to_cpu(grant->truncate_seq),
2361 le64_to_cpu(grant->truncate_size), size);
2362 ceph_decode_timespec(&mtime, &grant->mtime);
2363 ceph_decode_timespec(&atime, &grant->atime);
2364 ceph_decode_timespec(&ctime, &grant->ctime);
2366 le32_to_cpu(grant->time_warp_seq), &ctime, &mtime,
2388 if (wanted != le32_to_cpu(grant->wanted)) {
2390 ceph_cap_string(le32_to_cpu(grant->wanted)),
2392 grant->wanted = cpu_to_le32(wanted);
2399 ci->i_layout = grant->layout;
2401 /* revocation, grant, or no-op? */
2425 dout("grant: %s -> %s\n", ceph_cap_string(cap->issued),