|
@@ -259,7 +259,6 @@ static int check_dir_item(struct btrfs_root *root,
|
|
|
|
|
|
di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item);
|
|
|
while (cur < item_size) {
|
|
|
- char namebuf[max(BTRFS_NAME_LEN, XATTR_NAME_MAX)];
|
|
|
u32 name_len;
|
|
|
u32 data_len;
|
|
|
u32 max_name_len;
|
|
@@ -342,6 +341,8 @@ static int check_dir_item(struct btrfs_root *root,
|
|
|
*/
|
|
|
if (key->type == BTRFS_DIR_ITEM_KEY ||
|
|
|
key->type == BTRFS_XATTR_ITEM_KEY) {
|
|
|
+ char namebuf[max(BTRFS_NAME_LEN, XATTR_NAME_MAX)];
|
|
|
+
|
|
|
read_extent_buffer(leaf, namebuf,
|
|
|
(unsigned long)(di + 1), name_len);
|
|
|
name_hash = btrfs_name_hash(namebuf, name_len);
|