diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-02-20 19:09:53 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:55 -0400 |
commit | 79f88eba01b1aafdec1fbf453954f5cd00dd56c1 (patch) | |
tree | 5f74bc95a8c75e8458d5422182852930986e0c59 /fs/bcachefs/dirent.c | |
parent | c052cf82f3d66ad5b680003cfacf67cbe0e9b1bb (diff) | |
download | linux-79f88eba01b1aafdec1fbf453954f5cd00dd56c1.tar.gz linux-79f88eba01b1aafdec1fbf453954f5cd00dd56c1.tar.bz2 linux-79f88eba01b1aafdec1fbf453954f5cd00dd56c1.zip |
bcachefs: Rename KEY_TYPE_whiteout -> KEY_TYPE_hash_whiteout
Snapshots are going to need a different whiteout key type. Also, switch
to using BCH_BKEY_TYPES() to define the bkey value accessors.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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 f34bfda8ab0d..d2ebf1e5819d 100644 --- a/fs/bcachefs/dirent.c +++ b/fs/bcachefs/dirent.c @@ -262,7 +262,7 @@ int bch2_dirent_rename(struct btree_trans *trans, * overwrite old_dst - just make sure to use a * whiteout when deleting src: */ - new_src->k.type = KEY_TYPE_whiteout; + new_src->k.type = KEY_TYPE_hash_whiteout; } } else { /* Check if we need a whiteout to delete src: */ @@ -272,7 +272,7 @@ int bch2_dirent_rename(struct btree_trans *trans, goto out; if (ret) - new_src->k.type = KEY_TYPE_whiteout; + new_src->k.type = KEY_TYPE_hash_whiteout; } } |