1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_REFLINK_FORMAT_H
3 #define _BCACHEFS_REFLINK_FORMAT_H
9 * A reflink pointer might point to an indirect extent which is then
10 * later split (by copygc or rebalance). If we only pointed to part of
11 * the original indirect extent, and then one of the fragments is
12 * outside the range we point to, we'd leak a refcount: so when creating
13 * reflink pointers, we need to store pad values to remember the full
14 * range we were taking a reference on.
18 } __packed
__aligned(8);
20 struct bch_reflink_v
{
23 union bch_extent_entry start
[0];
25 } __packed
__aligned(8);
27 struct bch_indirect_inline_data
{
33 #endif /* _BCACHEFS_REFLINK_FORMAT_H */