backref.h (88ffb665c894b1929b30b09e05506ff359d9fb89) backref.h (f73853c7168aef0e071c160979af05a148691e61)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2011 STRATO. All rights reserved.
4 */
5
6#ifndef BTRFS_BACKREF_H
7#define BTRFS_BACKREF_H
8

--- 95 unchanged lines hidden (view full) ---

104 * before collecting all the remaining backrefs and before resolving
105 * indirect backrefs. This allows for the caller to terminate backref
106 * walking as soon as it finds one backref that matches some specific
107 * criteria. The @cache_lookup and @cache_store callbacks should not
108 * be NULL in order to use this callback.
109 */
110 iterate_extent_inodes_t *indirect_ref_iterator;
111 /*
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2011 STRATO. All rights reserved.
4 */
5
6#ifndef BTRFS_BACKREF_H
7#define BTRFS_BACKREF_H
8

--- 95 unchanged lines hidden (view full) ---

104 * before collecting all the remaining backrefs and before resolving
105 * indirect backrefs. This allows for the caller to terminate backref
106 * walking as soon as it finds one backref that matches some specific
107 * criteria. The @cache_lookup and @cache_store callbacks should not
108 * be NULL in order to use this callback.
109 */
110 iterate_extent_inodes_t *indirect_ref_iterator;
111 /*
112 * Context object to pass to the @cache_lookup, @cache_store and
113 * @indirect_ref_iterator callbacks.
112 * If this is not NULL, then the backref walking code will call this for
113 * each extent item it's meant to process before it actually starts
114 * processing it. If this returns anything other than 0, then it stops
115 * the backref walking code immediately.
114 */
116 */
117 int (*check_extent_item)(u64 bytenr, const struct btrfs_extent_item *ei,
118 const struct extent_buffer *leaf, void *user_ctx);
119 /* Context object to pass to the callbacks defined above. */
115 void *user_ctx;
116};
117
118struct inode_fs_paths {
119 struct btrfs_path *btrfs_path;
120 struct btrfs_root *fs_root;
121 struct btrfs_data_container *fspath;
122};

--- 413 unchanged lines hidden ---
120 void *user_ctx;
121};
122
123struct inode_fs_paths {
124 struct btrfs_path *btrfs_path;
125 struct btrfs_root *fs_root;
126 struct btrfs_data_container *fspath;
127};

--- 413 unchanged lines hidden ---