diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-13 19:49:14 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:17 -0400 |
commit | 85e95ca7cc48c23f772387b069d794f69116192b (patch) | |
tree | 74c805381a46dc2c436c1e06419295c3d8e96ad5 /fs/bcachefs/dirent.c | |
parent | 697e546fb38fb8c3e274c1561aaaab18178809a5 (diff) | |
download | linux-85e95ca7cc48c23f772387b069d794f69116192b.tar.gz linux-85e95ca7cc48c23f772387b069d794f69116192b.tar.bz2 linux-85e95ca7cc48c23f772387b069d794f69116192b.zip |
bcachefs: Update export_operations for snapshots
When support for snapshots was merged, export operations weren't
updated yet. This patch adds new filehandle types for bcachefs that
include the subvolume ID and updates export operations for subvolumes -
and also .get_parent, support for which was added just prior to
snapshots.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/dirent.c')
-rw-r--r-- | fs/bcachefs/dirent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/dirent.c b/fs/bcachefs/dirent.c index 5db1426faaf3..4dfcc955675b 100644 --- a/fs/bcachefs/dirent.c +++ b/fs/bcachefs/dirent.c @@ -197,8 +197,8 @@ static void dirent_copy_target(struct bkey_i_dirent *dst, dst->v.d_type = src.v->d_type; } -static int bch2_dirent_read_target(struct btree_trans *trans, subvol_inum dir, - struct bkey_s_c_dirent d, subvol_inum *target) +int bch2_dirent_read_target(struct btree_trans *trans, subvol_inum dir, + struct bkey_s_c_dirent d, subvol_inum *target) { struct bch_subvolume s; int ret = 0; |