Contributors: 20
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Chris Mason |
165 |
50.93% |
12 |
30.00% |
Josef Whiter |
38 |
11.73% |
2 |
5.00% |
Josef Bacik |
22 |
6.79% |
2 |
5.00% |
Zheng Yan |
18 |
5.56% |
3 |
7.50% |
David Woodhouse |
15 |
4.63% |
1 |
2.50% |
Nikolay Borisov |
10 |
3.09% |
2 |
5.00% |
David Sterba |
10 |
3.09% |
3 |
7.50% |
Sweet Tea Dorminy |
10 |
3.09% |
2 |
5.00% |
Alexander Block |
9 |
2.78% |
1 |
2.50% |
Marcos Paulo de Souza |
6 |
1.85% |
1 |
2.50% |
Johannes Thumshirn |
6 |
1.85% |
1 |
2.50% |
Jeff Mahoney |
3 |
0.93% |
1 |
2.50% |
Miao Xie |
2 |
0.62% |
1 |
2.50% |
Christoph Hellwig |
2 |
0.62% |
1 |
2.50% |
Ilya Dryomov |
2 |
0.62% |
2 |
5.00% |
Andreas Gruenbacher |
2 |
0.62% |
1 |
2.50% |
Sage Weil |
1 |
0.31% |
1 |
2.50% |
Filipe David Borba Manana |
1 |
0.31% |
1 |
2.50% |
David S. Miller |
1 |
0.31% |
1 |
2.50% |
Qu Wenruo |
1 |
0.31% |
1 |
2.50% |
Total |
324 |
|
40 |
|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef BTRFS_DIR_ITEM_H
#define BTRFS_DIR_ITEM_H
#include <linux/types.h>
#include <linux/crc32c.h>
struct fscrypt_str;
struct btrfs_fs_info;
struct btrfs_key;
struct btrfs_path;
struct btrfs_root;
struct btrfs_trans_handle;
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,
const struct fscrypt_str *name, struct btrfs_inode *dir,
const struct btrfs_key *location, u8 type, u64 index);
struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path, u64 dir,
const struct fscrypt_str *name, int mod);
struct btrfs_dir_item *btrfs_lookup_dir_index_item(
struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path, u64 dir,
u64 index, const struct fscrypt_str *name, int mod);
struct btrfs_dir_item *btrfs_search_dir_index_item(struct btrfs_root *root,
struct btrfs_path *path, u64 dirid,
const struct fscrypt_str *name);
int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path,
const struct btrfs_dir_item *di);
int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path, u64 objectid,
const char *name, u16 name_len,
const void *data, u16 data_len);
struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path, u64 dir,
const char *name, u16 name_len,
int mod);
struct btrfs_dir_item *btrfs_match_dir_item_name(const struct btrfs_path *path,
const char *name,
int name_len);
static inline u64 btrfs_name_hash(const char *name, int len)
{
return crc32c((u32)~1, name, len);
}
#endif