Lines Matching refs:issued
562 unsigned issued) in __check_cap_issue() argument
573 (issued & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) && in __check_cap_issue()
584 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) { in __check_cap_issue()
585 if (issued & CEPH_CAP_FILE_SHARED) in __check_cap_issue()
595 !(issued & CEPH_CAP_DIR_CREATE)) { in __check_cap_issue()
633 unsigned issued, unsigned wanted, in ceph_add_cap() argument
647 session->s_mds, cap_id, ceph_cap_string(issued), seq); in ceph_add_cap()
656 cap->issued = 0; in ceph_add_cap()
678 cap->issued = cap->implemented = CEPH_CAP_PIN; in ceph_add_cap()
694 issued |= cap->issued; in ceph_add_cap()
715 __check_cap_issue(ci, cap, issued); in ceph_add_cap()
724 (issued & ~actual_wanted & CEPH_CAP_ANY_WR)) { in ceph_add_cap()
726 ceph_cap_string(issued), ceph_cap_string(wanted), in ceph_add_cap()
745 inode, ceph_vinop(inode), cap, ceph_cap_string(issued), in ceph_add_cap()
746 ceph_cap_string(issued|cap->issued), seq, mds); in ceph_add_cap()
748 cap->issued = issued; in ceph_add_cap()
749 cap->implemented |= issued; in ceph_add_cap()
777 cap, ceph_cap_string(cap->issued), cap->cap_gen, gen); in __cap_is_valid()
802 &ci->netfs.inode, cap, ceph_cap_string(cap->issued)); in __ceph_caps_issued()
803 have |= cap->issued; in __ceph_caps_issued()
814 have &= ~cap->implemented | cap->issued; in __ceph_caps_issued()
834 have |= cap->issued; in __ceph_caps_issued_other()
882 if ((cap->issued & mask) == mask) { in __ceph_caps_issued_mask()
885 ceph_cap_string(cap->issued), in __ceph_caps_issued_mask()
893 have |= cap->issued; in __ceph_caps_issued_mask()
897 ceph_cap_string(cap->issued), in __ceph_caps_issued_mask()
910 if (cap->issued & mask) in __ceph_caps_issued_mask()
947 (cap->implemented & ~cap->issued & mask)) in __ceph_caps_revoking_other()
1353 held = cap->issued | cap->implemented; in __prep_cap()
1354 revoking = cap->implemented & ~cap->issued; in __prep_cap()
1365 cap->issued &= retain; /* drop bits we don't want */ in __prep_cap()
1371 arg->wake = cap->implemented & ~cap->issued; in __prep_cap()
1372 cap->implemented &= cap->issued | used; in __prep_cap()
1497 arg.caps = capsnap->issued; in __send_flush_snap()
1909 int issued, implemented, want, retain, revoking, flushing = 0; in ceph_check_caps() local
1942 issued = __ceph_caps_issued(ci, &implemented); in ceph_check_caps()
1943 revoking = implemented & ~issued; in ceph_check_caps()
1953 (issued & CEPH_CAP_FILE_SHARED) && in ceph_check_caps()
1985 ceph_cap_string(issued), ceph_cap_string(revoking), in ceph_check_caps()
2031 cap_used &= ~ci->i_auth_cap->issued; in ceph_check_caps()
2033 revoking = cap->implemented & ~cap->issued; in ceph_check_caps()
2036 ceph_cap_string(cap->issued), in ceph_check_caps()
2041 (cap->issued & CEPH_CAP_FILE_WR)) { in ceph_check_caps()
2071 ceph_cap_string(cap->implemented & ~cap->issued)); in ceph_check_caps()
2093 if (want & ~(cap->mds_wanted | cap->issued)) in ceph_check_caps()
2100 if ((cap->issued & ~retain) == 0) in ceph_check_caps()
2201 (cap->issued | cap->implemented), in try_flush_caps()
2490 (cap->issued | cap->implemented), in __kick_flushing_caps()
2552 if ((cap->issued & ci->i_flushing_caps) != in ceph_early_kick_flushing_caps()
2847 (ci->i_auth_cap->issued & CEPH_CAP_FILE_WR) && in check_max_size()
3312 int issued; member
3358 ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && in handle_cap_grant()
3372 cap->issued = cap->implemented = CEPH_CAP_PIN; in handle_cap_grant()
3386 newcaps |= cap->issued; in handle_cap_grant()
3398 (extra_info->issued & CEPH_CAP_AUTH_EXCL) == 0) { in handle_cap_grant()
3415 (extra_info->issued & CEPH_CAP_LINK_EXCL) == 0) { in handle_cap_grant()
3421 if ((extra_info->issued & CEPH_CAP_XATTR_EXCL) == 0 && in handle_cap_grant()
3444 ceph_fill_file_time(inode, extra_info->issued, in handle_cap_grant()
3471 queue_trunc = ceph_fill_file_size(inode, extra_info->issued, in handle_cap_grant()
3515 if (cap->issued & ~newcaps) { in handle_cap_grant()
3516 int revoking = cap->issued & ~newcaps; in handle_cap_grant()
3519 ceph_cap_string(cap->issued), in handle_cap_grant()
3534 if (~cap->issued & newcaps) in handle_cap_grant()
3536 cap->issued = newcaps; in handle_cap_grant()
3538 } else if (cap->issued == newcaps) { in handle_cap_grant()
3540 ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); in handle_cap_grant()
3542 dout("grant: %s -> %s\n", ceph_cap_string(cap->issued), in handle_cap_grant()
3549 cap->issued = newcaps; in handle_cap_grant()
3555 BUG_ON(cap->issued & ~cap->implemented); in handle_cap_grant()
3567 if (newcaps & ~extra_info->issued) in handle_cap_grant()
3829 int issued = __ceph_caps_issued(ceph_inode(inode), &implemented); in handle_cap_trunc() local
3834 issued |= implemented | dirty; in handle_cap_trunc()
3838 queue_trunc = ceph_fill_file_size(inode, issued, in handle_cap_trunc()
3862 int target, issued; in handle_cap_export() local
3894 issued = cap->issued; in handle_cap_export()
3895 if (issued != cap->implemented) in handle_cap_export()
3900 ceph_cap_string(issued), in handle_cap_export()
3913 tcap->issued |= issued; in handle_cap_export()
3914 tcap->implemented |= issued; in handle_cap_export()
3926 ceph_add_cap(inode, tsession, t_cap_id, issued, 0, in handle_cap_export()
3992 int issued; in handle_cap_import() local
4029 __ceph_caps_issued(ci, &issued); in handle_cap_import()
4030 issued |= __ceph_caps_dirty(ci); in handle_cap_import()
4053 *old_issued = issued; in handle_cap_import()
4233 &cap, &extra_info.issued); in ceph_handle_caps()
4256 __ceph_caps_issued(ci, &extra_info.issued); in ceph_handle_caps()
4257 extra_info.issued |= __ceph_caps_dirty(ci); in ceph_handle_caps()
4521 unless &= cap->issued; in ceph_encode_inode_release()
4533 if (force || (cap->issued & drop)) { in ceph_encode_inode_release()
4534 if (cap->issued & drop) { in ceph_encode_inode_release()
4538 ceph_cap_string(cap->issued), in ceph_encode_inode_release()
4539 ceph_cap_string(cap->issued & ~drop), in ceph_encode_inode_release()
4543 cap->issued &= ~drop; in ceph_encode_inode_release()
4552 ceph_cap_string(cap->issued)); in ceph_encode_inode_release()
4568 inode, cap, ceph_cap_string(cap->issued)); in ceph_encode_inode_release()