Lines Matching defs:action
45 * Whenever we add/remove a reference we record the action. The action maps
46 * back to the delayed ref action. We hold the ref we are changing in the
47 * action so we can account for the history properly, and we record the root we
52 int action;
613 " Ref action %d, root %llu, ref_root %llu, parent %llu, owner %llu, offset %llu, num_refs %llu",
614 ra->action, ra->root, ra->ref.root_objectid, ra->ref.parent,
657 * This will add an action item to the given bytenr and do sanity checks to make
669 int action = generic_ref->action;
706 ref->num_refs = (action == BTRFS_DROP_DELAYED_REF) ? -1 : 1;
710 * Save the extra info from the delayed ref in the ref action to make it
721 ra->action = action;
729 if (action == BTRFS_ADD_DELAYED_EXTENT) {
789 "trying to do action %d to bytenr %llu num_bytes %llu but there is no existing entry!",
790 action, bytenr, num_bytes);
798 "trying to do action %d for a bytenr that has 0 total references",
799 action);
819 if (action == BTRFS_DROP_DELAYED_REF) {
847 if (action == BTRFS_DROP_DELAYED_REF) {
875 if (action == BTRFS_DROP_DELAYED_REF) {
879 } else if (action == BTRFS_ADD_DELAYED_REF) {