]> xenbits.xensource.com Git - people/pauldu/linux.git/commitdiff
btrfs: add fscrypt related dependencies to respective headers
authorJosef Bacik <josef@toxicpanda.com>
Fri, 25 Aug 2023 20:19:26 +0000 (16:19 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:02 +0000 (16:44 +0200)
These headers have struct fscrypt_str as function arguments, so add
struct fscrypt_str to the theader, and include linux/fscrypt.h in
btrfs_inode.h as it also needs the definition of struct fscrypt_name for
the new inode args.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/dir-item.h
fs/btrfs/inode-item.h
fs/btrfs/root-tree.h

index bda1fdbba666aa63a8817cad37f7460753921538..bca97a6bb246eb8ae2646c8b620de4797be4fffa 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/hash.h>
 #include <linux/refcount.h>
+#include <linux/fscrypt.h>
 #include "extent_map.h"
 #include "extent_io.h"
 #include "ordered-data.h"
index 5db2ea0dfd76680a3b32b414eb2b78cbf7aa136a..e40a226373d7ecb80ba66f548e8d794649a48885 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <linux/crc32c.h>
 
+struct fscrypt_str;
+
 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
                          const struct fscrypt_str *name);
 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans,
index f50cf6cc160e69d0b06ee18d625001acae5d08d3..4337bb26f419b780dba5539c6c9d8257014e1a07 100644 (file)
@@ -13,6 +13,7 @@ struct btrfs_key;
 struct btrfs_inode_extref;
 struct btrfs_inode;
 struct extent_buffer;
+struct fscrypt_str;
 
 /*
  * Return this if we need to call truncate_block for the last bit of the
index cbbaca32126e6263ae5b8982024778dcda97dca1..eb15768b9170d97f7ef09d6b0d6229e66d5dca35 100644 (file)
@@ -3,6 +3,8 @@
 #ifndef BTRFS_ROOT_TREE_H
 #define BTRFS_ROOT_TREE_H
 
+struct fscrypt_str;
+
 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
                                     struct btrfs_block_rsv *rsv,
                                     int nitems, bool use_global_rsv);