Merge tag 'for-6.5/io_uring-2023-06-23' of git://git.kernel.dk/linux
[linux-block.git] / fs / btrfs / dir-item.h
CommitLineData
f2b39277
JB
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef BTRFS_DIR_ITEM_H
4#define BTRFS_DIR_ITEM_H
5
6int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
7 const struct fscrypt_str *name);
8int btrfs_insert_dir_item(struct btrfs_trans_handle *trans,
9 const struct fscrypt_str *name, struct btrfs_inode *dir,
10 struct btrfs_key *location, u8 type, u64 index);
11struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans,
12 struct btrfs_root *root,
13 struct btrfs_path *path, u64 dir,
14 const struct fscrypt_str *name, int mod);
15struct btrfs_dir_item *btrfs_lookup_dir_index_item(
16 struct btrfs_trans_handle *trans,
17 struct btrfs_root *root,
18 struct btrfs_path *path, u64 dir,
19 u64 index, const struct fscrypt_str *name, int mod);
20struct btrfs_dir_item *btrfs_search_dir_index_item(struct btrfs_root *root,
21 struct btrfs_path *path, u64 dirid,
22 const struct fscrypt_str *name);
23int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
24 struct btrfs_root *root,
25 struct btrfs_path *path,
26 struct btrfs_dir_item *di);
27int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
28 struct btrfs_root *root,
29 struct btrfs_path *path, u64 objectid,
30 const char *name, u16 name_len,
31 const void *data, u16 data_len);
32struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,
33 struct btrfs_root *root,
34 struct btrfs_path *path, u64 dir,
35 const char *name, u16 name_len,
36 int mod);
37struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_fs_info *fs_info,
38 struct btrfs_path *path,
39 const char *name,
40 int name_len);
41
42#endif