Lines Matching refs:i_head_snapc
1331 arg.follows = flushing ? ci->i_head_snapc->seq : 0; in __send_cap()
1638 if (!ci->i_head_snapc) { in __ceph_mark_dirty_caps()
1640 ci->i_head_snapc = ceph_get_snap_context( in __ceph_mark_dirty_caps()
1644 &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
2507 if (ci->i_wr_ref == 0 && !ci->i_head_snapc) { in __take_cap_refs()
2509 ci->i_head_snapc = ceph_get_snap_context( in __take_cap_refs()
2617 !ci->i_head_snapc && in try_get_cap_refs()
2926 BUG_ON(!ci->i_head_snapc); in ceph_put_cap_refs()
2927 ceph_put_snap_context(ci->i_head_snapc); in ceph_put_cap_refs()
2928 ci->i_head_snapc = NULL; in ceph_put_cap_refs()
2974 if (ci->i_head_snapc == snapc) { in ceph_put_wrbuffer_cap_refs()
2980 BUG_ON(!ci->i_head_snapc); in ceph_put_wrbuffer_cap_refs()
2981 ceph_put_snap_context(ci->i_head_snapc); in ceph_put_wrbuffer_cap_refs()
2982 ci->i_head_snapc = NULL; in ceph_put_wrbuffer_cap_refs()
3439 BUG_ON(!ci->i_head_snapc); in handle_cap_flush_ack()
3440 ceph_put_snap_context(ci->i_head_snapc); in handle_cap_flush_ack()
3441 ci->i_head_snapc = NULL; in handle_cap_flush_ack()