diff options
Diffstat (limited to 'libbcachefs/dirent.h')
-rw-r--r-- | libbcachefs/dirent.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbcachefs/dirent.h b/libbcachefs/dirent.h index 89451458..53ad9966 100644 --- a/libbcachefs/dirent.h +++ b/libbcachefs/dirent.h @@ -34,6 +34,13 @@ static inline unsigned dirent_val_u64s(unsigned len) int bch2_dirent_read_target(struct btree_trans *, subvol_inum, struct bkey_s_c_dirent, subvol_inum *); +static inline void dirent_copy_target(struct bkey_i_dirent *dst, + struct bkey_s_c_dirent src) +{ + dst->v.d_inum = src.v->d_inum; + dst->v.d_type = src.v->d_type; +} + int bch2_dirent_create_snapshot(struct btree_trans *, u32, u64, u32, const struct bch_hash_info *, u8, const struct qstr *, u64, u64 *, |