CEPH_CAP_PIN
want |= CEPH_CAP_PIN;
BUG_ON((retain & CEPH_CAP_PIN) == 0);
retain = file_wanted | used | CEPH_CAP_PIN;
(file_wanted & ~CEPH_CAP_PIN) &&
if (got & CEPH_CAP_PIN)
if (had & CEPH_CAP_PIN)
cap->issued = cap->implemented = CEPH_CAP_PIN;
drop |= ~(__ceph_caps_wanted(ci) | CEPH_CAP_PIN);
cap->issued = cap->implemented = CEPH_CAP_PIN;
if (caps & CEPH_CAP_PIN)
used |= CEPH_CAP_PIN;
ci->i_snap_caps = CEPH_CAP_PIN; /* so we can open */
ceph_put_cap_refs(ceph_inode(req->r_inode), CEPH_CAP_PIN);
ceph_put_cap_refs(ceph_inode(req->r_parent), CEPH_CAP_PIN);
CEPH_CAP_PIN);
cap->issued = cap->implemented = CEPH_CAP_PIN;
ceph_put_cap_refs(ceph_inode(old_parent), CEPH_CAP_PIN);
ceph_get_cap_refs(ceph_inode(req->r_parent), CEPH_CAP_PIN);
ceph_get_cap_refs(ceph_inode(req->r_inode), CEPH_CAP_PIN);
ceph_take_cap_refs(ci, CEPH_CAP_PIN, false);
CEPH_CAP_PIN);
int caps = CEPH_CAP_PIN;
#define CEPH_STAT_CAP_INODE CEPH_CAP_PIN
#define CEPH_STAT_CAP_TYPE CEPH_CAP_PIN /* mode >> 12 */
#define CEPH_STAT_CAP_SYMLINK CEPH_CAP_PIN
#define CEPH_STAT_CAP_INODE_ALL (CEPH_CAP_PIN | \
CEPH_CAP_PIN)
#define CEPH_CAP_ALL_FILE (CEPH_CAP_PIN | CEPH_CAP_ANY_SHARED | \