static int check_path(struct btree_trans *trans,
		      pathbuf *p,
		      struct bch_inode_unpacked *inode,
		      u32 snapshot)
static int check_path(struct btree_trans *trans, pathbuf *p, struct bkey_s_c inode_k)