Lines Matching refs:grant
2304 static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, in handle_cap_grant() argument
2312 int seq = le32_to_cpu(grant->seq); in handle_cap_grant()
2313 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant()
2315 u64 size = le64_to_cpu(grant->size); in handle_cap_grant()
2316 u64 max_size = le64_to_cpu(grant->max_size); in handle_cap_grant()
2359 inode->i_mode = le32_to_cpu(grant->mode); in handle_cap_grant()
2360 inode->i_uid = le32_to_cpu(grant->uid); in handle_cap_grant()
2361 inode->i_gid = le32_to_cpu(grant->gid); in handle_cap_grant()
2367 set_nlink(inode, le32_to_cpu(grant->nlink)); in handle_cap_grant()
2369 if ((issued & CEPH_CAP_XATTR_EXCL) == 0 && grant->xattr_len) { in handle_cap_grant()
2370 int len = le32_to_cpu(grant->xattr_len); in handle_cap_grant()
2371 u64 version = le64_to_cpu(grant->xattr_version); in handle_cap_grant()
2385 le32_to_cpu(grant->truncate_seq), in handle_cap_grant()
2386 le64_to_cpu(grant->truncate_size), size); in handle_cap_grant()
2387 ceph_decode_timespec(&mtime, &grant->mtime); in handle_cap_grant()
2388 ceph_decode_timespec(&atime, &grant->atime); in handle_cap_grant()
2389 ceph_decode_timespec(&ctime, &grant->ctime); in handle_cap_grant()
2391 le32_to_cpu(grant->time_warp_seq), &ctime, &mtime, in handle_cap_grant()
2413 if (wanted != le32_to_cpu(grant->wanted)) { in handle_cap_grant()
2415 ceph_cap_string(le32_to_cpu(grant->wanted)), in handle_cap_grant()
2417 grant->wanted = cpu_to_le32(wanted); in handle_cap_grant()
2423 ci->i_layout = grant->layout; in handle_cap_grant()