summaryrefslogtreecommitdiff
path: root/fs/btrfs/export.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-02-12 21:22:07 +0100
committerDavid Sterba <dsterba@suse.com>2025-03-18 20:35:42 +0100
commitdba6ae0b439f128b358a040974f69793722f8801 (patch)
tree0364623cbe4990782f97ed6aa63da5b367c5b763 /fs/btrfs/export.c
parent17b98249226aacfc8f7d4aba5a601a975ffed986 (diff)
btrfs: unify ordering of btrfs_key initializations
The btrfs_key is defined as objectid/type/offset and the keys are also printed like that. For better readability, update all key initializations to match this order. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/export.c')
-rw-r--r--fs/btrfs/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/export.c b/fs/btrfs/export.c
index e2b22bea348a..c087424ac067 100644
--- a/fs/btrfs/export.c
+++ b/fs/btrfs/export.c
@@ -249,8 +249,8 @@ static int btrfs_get_name(struct dentry *parent, char *name,
root = fs_info->tree_root;
} else {
key.objectid = ino;
- key.offset = btrfs_ino(BTRFS_I(dir));
key.type = BTRFS_INODE_REF_KEY;
+ key.offset = btrfs_ino(BTRFS_I(dir));
}
ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);