Home
last modified time | relevance | path

Searched refs:dir (Results 1 - 25 of 3798) sorted by relevance

12345678910>>...152

/kernel/linux/linux-5.10/fs/adfs/
H A Ddir.c3 * linux/fs/adfs/dir.c
17 int adfs_dir_copyfrom(void *dst, struct adfs_dir *dir, unsigned int offset, in adfs_dir_copyfrom() argument
20 struct super_block *sb = dir->sb; in adfs_dir_copyfrom()
26 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyfrom()
30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom()
37 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom()
42 int adfs_dir_copyto(struct adfs_dir *dir, unsigned int offset, const void *src, in adfs_dir_copyto() argument
45 struct super_block *sb = dir->sb; in adfs_dir_copyto()
51 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyto()
55 memcpy(dir in adfs_dir_copyto()
67 __adfs_dir_cleanup(struct adfs_dir *dir) __adfs_dir_cleanup() argument
77 adfs_dir_relse(struct adfs_dir *dir) adfs_dir_relse() argument
87 adfs_dir_forget(struct adfs_dir *dir) adfs_dir_forget() argument
97 adfs_dir_read_buffers(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_dir_read_buffers() argument
146 adfs_dir_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_dir_read() argument
156 adfs_dir_read_inode(struct super_block *sb, struct inode *inode, struct adfs_dir *dir) adfs_dir_read_inode() argument
176 adfs_dir_mark_dirty(struct adfs_dir *dir) adfs_dir_mark_dirty() argument
185 adfs_dir_sync(struct adfs_dir *dir) adfs_dir_sync() argument
200 adfs_object_fixup(struct adfs_dir *dir, struct object_info *obj) adfs_object_fixup() argument
243 struct adfs_dir dir; adfs_iterate() local
278 struct adfs_dir dir; adfs_dir_update() local
353 struct adfs_dir dir; adfs_dir_lookup_byname() local
430 adfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) adfs_lookup() argument
[all...]
H A Ddir_fplus.c70 static u8 adfs_fplus_checkbyte(struct adfs_dir *dir) in adfs_fplus_checkbyte() argument
72 struct adfs_bigdirheader *h = dir->bighead; in adfs_fplus_checkbyte()
73 struct adfs_bigdirtail *t = dir->bigtail; in adfs_fplus_checkbyte()
83 bp = (void *)dir->bhs[bi]->b_data; in adfs_fplus_checkbyte()
84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte()
104 unsigned int size, struct adfs_dir *dir) in adfs_fplus_read()
112 ret = adfs_dir_read_buffers(sb, indaddr, sb->s_blocksize, dir); in adfs_fplus_read()
116 dir->bighead = h = (void *)dir->bhs[0]->b_data; in adfs_fplus_read()
119 adfs_error(sb, "dir in adfs_fplus_read()
103 adfs_fplus_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_fplus_read() argument
159 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) adfs_fplus_setpos() argument
172 adfs_fplus_getnext(struct adfs_dir *dir, struct object_info *obj) adfs_fplus_getnext() argument
210 adfs_fplus_iterate(struct adfs_dir *dir, struct dir_context *ctx) adfs_fplus_iterate() argument
230 adfs_fplus_update(struct adfs_dir *dir, struct object_info *obj) adfs_fplus_update() argument
261 adfs_fplus_commit(struct adfs_dir *dir) adfs_fplus_commit() argument
[all...]
H A Ddir_f.c70 adfs_dir_checkbyte(const struct adfs_dir *dir) in adfs_dir_checkbyte() argument
72 struct buffer_head * const *bh = dir->bh; in adfs_dir_checkbyte()
73 const int blocksize_bits = dir->sb->s_blocksize_bits; in adfs_dir_checkbyte()
124 static int adfs_f_validate(struct adfs_dir *dir) in adfs_f_validate() argument
126 struct adfs_dirheader *head = dir->dirhead; in adfs_f_validate()
127 struct adfs_newdirtail *tail = dir->newtail; in adfs_f_validate()
134 adfs_dir_checkbyte(dir) != tail->dircheckbyte) in adfs_f_validate()
142 struct adfs_dir *dir) in adfs_f_read()
150 ret = adfs_dir_read_buffers(sb, indaddr, ADFS_NEWDIR_SIZE, dir); in adfs_f_read()
154 dir in adfs_f_read()
141 adfs_f_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_f_read() argument
175 adfs_dir2obj(struct adfs_dir *dir, struct object_info *obj, struct adfs_direntry *de) adfs_dir2obj() argument
215 __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj) __adfs_dir_get() argument
233 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) adfs_f_setpos() argument
243 adfs_f_getnext(struct adfs_dir *dir, struct object_info *obj) adfs_f_getnext() argument
254 adfs_f_iterate(struct adfs_dir *dir, struct dir_context *ctx) adfs_f_iterate() argument
271 adfs_f_update(struct adfs_dir *dir, struct object_info *obj) adfs_f_update() argument
298 adfs_f_commit(struct adfs_dir *dir) adfs_f_commit() argument
[all...]
/kernel/linux/linux-6.6/fs/adfs/
H A Ddir.c3 * linux/fs/adfs/dir.c
17 int adfs_dir_copyfrom(void *dst, struct adfs_dir *dir, unsigned int offset, in adfs_dir_copyfrom() argument
20 struct super_block *sb = dir->sb; in adfs_dir_copyfrom()
26 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyfrom()
30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom()
37 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom()
42 int adfs_dir_copyto(struct adfs_dir *dir, unsigned int offset, const void *src, in adfs_dir_copyto() argument
45 struct super_block *sb = dir->sb; in adfs_dir_copyto()
51 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyto()
55 memcpy(dir in adfs_dir_copyto()
67 __adfs_dir_cleanup(struct adfs_dir *dir) __adfs_dir_cleanup() argument
77 adfs_dir_relse(struct adfs_dir *dir) adfs_dir_relse() argument
87 adfs_dir_forget(struct adfs_dir *dir) adfs_dir_forget() argument
97 adfs_dir_read_buffers(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_dir_read_buffers() argument
146 adfs_dir_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_dir_read() argument
156 adfs_dir_read_inode(struct super_block *sb, struct inode *inode, struct adfs_dir *dir) adfs_dir_read_inode() argument
176 adfs_dir_mark_dirty(struct adfs_dir *dir) adfs_dir_mark_dirty() argument
185 adfs_dir_sync(struct adfs_dir *dir) adfs_dir_sync() argument
200 adfs_object_fixup(struct adfs_dir *dir, struct object_info *obj) adfs_object_fixup() argument
243 struct adfs_dir dir; adfs_iterate() local
278 struct adfs_dir dir; adfs_dir_update() local
353 struct adfs_dir dir; adfs_dir_lookup_byname() local
430 adfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) adfs_lookup() argument
[all...]
H A Ddir_fplus.c70 static u8 adfs_fplus_checkbyte(struct adfs_dir *dir) in adfs_fplus_checkbyte() argument
72 struct adfs_bigdirheader *h = dir->bighead; in adfs_fplus_checkbyte()
73 struct adfs_bigdirtail *t = dir->bigtail; in adfs_fplus_checkbyte()
83 bp = (void *)dir->bhs[bi]->b_data; in adfs_fplus_checkbyte()
84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte()
104 unsigned int size, struct adfs_dir *dir) in adfs_fplus_read()
112 ret = adfs_dir_read_buffers(sb, indaddr, sb->s_blocksize, dir); in adfs_fplus_read()
116 dir->bighead = h = (void *)dir->bhs[0]->b_data; in adfs_fplus_read()
119 adfs_error(sb, "dir in adfs_fplus_read()
103 adfs_fplus_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_fplus_read() argument
159 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) adfs_fplus_setpos() argument
172 adfs_fplus_getnext(struct adfs_dir *dir, struct object_info *obj) adfs_fplus_getnext() argument
210 adfs_fplus_iterate(struct adfs_dir *dir, struct dir_context *ctx) adfs_fplus_iterate() argument
230 adfs_fplus_update(struct adfs_dir *dir, struct object_info *obj) adfs_fplus_update() argument
261 adfs_fplus_commit(struct adfs_dir *dir) adfs_fplus_commit() argument
[all...]
H A Ddir_f.c70 adfs_dir_checkbyte(const struct adfs_dir *dir) in adfs_dir_checkbyte() argument
72 struct buffer_head * const *bh = dir->bh; in adfs_dir_checkbyte()
73 const int blocksize_bits = dir->sb->s_blocksize_bits; in adfs_dir_checkbyte()
124 static int adfs_f_validate(struct adfs_dir *dir) in adfs_f_validate() argument
126 struct adfs_dirheader *head = dir->dirhead; in adfs_f_validate()
127 struct adfs_newdirtail *tail = dir->newtail; in adfs_f_validate()
134 adfs_dir_checkbyte(dir) != tail->dircheckbyte) in adfs_f_validate()
142 struct adfs_dir *dir) in adfs_f_read()
150 ret = adfs_dir_read_buffers(sb, indaddr, ADFS_NEWDIR_SIZE, dir); in adfs_f_read()
154 dir in adfs_f_read()
141 adfs_f_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_f_read() argument
175 adfs_dir2obj(struct adfs_dir *dir, struct object_info *obj, struct adfs_direntry *de) adfs_dir2obj() argument
215 __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj) __adfs_dir_get() argument
233 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) adfs_f_setpos() argument
243 adfs_f_getnext(struct adfs_dir *dir, struct object_info *obj) adfs_f_getnext() argument
254 adfs_f_iterate(struct adfs_dir *dir, struct dir_context *ctx) adfs_f_iterate() argument
271 adfs_f_update(struct adfs_dir *dir, struct object_info *obj) adfs_f_update() argument
298 adfs_f_commit(struct adfs_dir *dir) adfs_f_commit() argument
[all...]
/kernel/linux/linux-5.10/drivers/misc/cxl/
H A Ddebugfs.c36 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl9() argument
38 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1)); in cxl_debugfs_add_adapter_regs_psl9()
39 debugfs_create_io_x64("fir_mask", 0400, dir, in cxl_debugfs_add_adapter_regs_psl9()
41 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL)); in cxl_debugfs_add_adapter_regs_psl9()
42 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG)); in cxl_debugfs_add_adapter_regs_psl9()
43 debugfs_create_io_x64("debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9()
45 debugfs_create_io_x64("xsl-debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9()
49 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl8() argument
51 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1)); in cxl_debugfs_add_adapter_regs_psl8()
52 debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_add in cxl_debugfs_add_adapter_regs_psl8()
59 struct dentry *dir; cxl_debugfs_adapter_add() local
80 cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) cxl_debugfs_add_afu_regs_psl9() argument
85 cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) cxl_debugfs_add_afu_regs_psl8() argument
98 struct dentry *dir; cxl_debugfs_afu_add() local
[all...]
/kernel/linux/linux-6.6/drivers/misc/cxl/
H A Ddebugfs.c36 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl9() argument
38 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1)); in cxl_debugfs_add_adapter_regs_psl9()
39 debugfs_create_io_x64("fir_mask", 0400, dir, in cxl_debugfs_add_adapter_regs_psl9()
41 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL)); in cxl_debugfs_add_adapter_regs_psl9()
42 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG)); in cxl_debugfs_add_adapter_regs_psl9()
43 debugfs_create_io_x64("debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9()
45 debugfs_create_io_x64("xsl-debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9()
49 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl8() argument
51 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1)); in cxl_debugfs_add_adapter_regs_psl8()
52 debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_add in cxl_debugfs_add_adapter_regs_psl8()
59 struct dentry *dir; cxl_debugfs_adapter_add() local
80 cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) cxl_debugfs_add_afu_regs_psl9() argument
85 cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) cxl_debugfs_add_afu_regs_psl8() argument
98 struct dentry *dir; cxl_debugfs_afu_add() local
[all...]
/kernel/linux/linux-6.6/lib/
H A Dref_tracker.c16 struct list_head head; /* anchor into dir->list or dir->quarantine */
32 ref_tracker_get_stats(struct ref_tracker_dir *dir, unsigned int limit) in ref_tracker_get_stats() argument
44 list_for_each_entry(tracker, &dir->list, head) { in ref_tracker_get_stats()
84 __ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir, in __ref_tracker_dir_pr_ostream() argument
92 lockdep_assert_held(&dir->lock); in __ref_tracker_dir_pr_ostream()
94 if (list_empty(&dir->list)) in __ref_tracker_dir_pr_ostream()
97 stats = ref_tracker_get_stats(dir, display_limit); in __ref_tracker_dir_pr_ostream()
100 dir->name, dir, stat in __ref_tracker_dir_pr_ostream()
124 ref_tracker_dir_print_locked(struct ref_tracker_dir *dir, unsigned int display_limit) ref_tracker_dir_print_locked() argument
133 ref_tracker_dir_print(struct ref_tracker_dir *dir, unsigned int display_limit) ref_tracker_dir_print() argument
144 ref_tracker_dir_snprint(struct ref_tracker_dir *dir, char *buf, size_t size) ref_tracker_dir_snprint() argument
157 ref_tracker_dir_exit(struct ref_tracker_dir *dir) ref_tracker_dir_exit() argument
185 ref_tracker_alloc(struct ref_tracker_dir *dir, struct ref_tracker **trackerp, gfp_t gfp) ref_tracker_alloc() argument
219 ref_tracker_free(struct ref_tracker_dir *dir, struct ref_tracker **trackerp) ref_tracker_free() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dref_tracker.h26 static inline void ref_tracker_dir_init(struct ref_tracker_dir *dir, in ref_tracker_dir_init() argument
30 INIT_LIST_HEAD(&dir->list); in ref_tracker_dir_init()
31 INIT_LIST_HEAD(&dir->quarantine); in ref_tracker_dir_init()
32 spin_lock_init(&dir->lock); in ref_tracker_dir_init()
33 dir->quarantine_avail = quarantine_count; in ref_tracker_dir_init()
34 dir->dead = false; in ref_tracker_dir_init()
35 refcount_set(&dir->untracked, 1); in ref_tracker_dir_init()
36 refcount_set(&dir->no_tracker, 1); in ref_tracker_dir_init()
37 strscpy(dir->name, name, sizeof(dir in ref_tracker_dir_init()
59 ref_tracker_dir_init(struct ref_tracker_dir *dir, unsigned int quarantine_count, const char *name) ref_tracker_dir_init() argument
65 ref_tracker_dir_exit(struct ref_tracker_dir *dir) ref_tracker_dir_exit() argument
69 ref_tracker_dir_print_locked(struct ref_tracker_dir *dir, unsigned int display_limit) ref_tracker_dir_print_locked() argument
74 ref_tracker_dir_print(struct ref_tracker_dir *dir, unsigned int display_limit) ref_tracker_dir_print() argument
79 ref_tracker_dir_snprint(struct ref_tracker_dir *dir, char *buf, size_t size) ref_tracker_dir_snprint() argument
85 ref_tracker_alloc(struct ref_tracker_dir *dir, struct ref_tracker **trackerp, gfp_t gfp) ref_tracker_alloc() argument
92 ref_tracker_free(struct ref_tracker_dir *dir, struct ref_tracker **trackerp) ref_tracker_free() argument
[all...]
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dproperty.c100 struct tb_property_dir *dir; in tb_property_parse() local
116 dir = __tb_property_parse_dir(block, block_len, entry->value, in tb_property_parse()
118 if (!dir) { in tb_property_parse()
122 property->value.dir = dir; in tb_property_parse()
167 struct tb_property_dir *dir; in __tb_property_parse_dir() local
169 dir = kzalloc(sizeof(*dir), GFP_KERNEL); in __tb_property_parse_dir()
170 if (!dir) in __tb_property_parse_dir()
177 dir in __tb_property_parse_dir()
244 struct tb_property_dir *dir; tb_property_create_dir() local
293 tb_property_free_dir(struct tb_property_dir *dir) tb_property_free_dir() argument
309 tb_property_dir_length(const struct tb_property_dir *dir, bool recurse, size_t *data_len) tb_property_dir_length() argument
348 __tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, unsigned int start_offset, size_t block_len) __tb_property_format_dir() argument
488 tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, size_t block_len) tb_property_format_dir() argument
512 tb_property_copy_dir(const struct tb_property_dir *dir) tb_property_copy_dir() argument
680 tb_property_add_dir(struct tb_property_dir *parent, const char *key, struct tb_property_dir *dir) tb_property_add_dir() argument
722 tb_property_find(struct tb_property_dir *dir, const char *key, enum tb_property_type type) tb_property_find() argument
741 tb_property_get_next(struct tb_property_dir *dir, struct tb_property *prev) tb_property_get_next() argument
[all...]
/kernel/linux/linux-5.10/drivers/nubus/
H A Dnubus.c220 struct nubus_dir *dir) in nubus_get_root_dir()
222 dir->ptr = dir->base = board->directory; in nubus_get_root_dir()
223 dir->done = 0; in nubus_get_root_dir()
224 dir->mask = board->lanes; in nubus_get_root_dir()
230 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) in nubus_get_func_dir() argument
232 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir()
233 dir->done = 0; in nubus_get_func_dir()
234 dir in nubus_get_func_dir()
219 nubus_get_root_dir(const struct nubus_board *board, struct nubus_dir *dir) nubus_get_root_dir() argument
239 nubus_get_board_dir(const struct nubus_board *board, struct nubus_dir *dir) nubus_get_board_dir() argument
258 nubus_get_subdir(const struct nubus_dirent *ent, struct nubus_dir *dir) nubus_get_subdir() argument
297 nubus_rewinddir(struct nubus_dir *dir) nubus_rewinddir() argument
323 nubus_find_rsrc(struct nubus_dir *dir, unsigned char rsrc_type, struct nubus_dirent *ent) nubus_find_rsrc() argument
342 struct nubus_dir dir; nubus_get_block_rsrc_dir() local
362 struct nubus_dir dir; nubus_get_display_vidmode() local
493 struct nubus_dir dir; nubus_get_functional_resource() local
608 struct nubus_dir dir; nubus_get_vendorinfo() local
634 struct nubus_dir dir; nubus_get_board_resource() local
722 struct nubus_dir dir; nubus_add_board() local
[all...]
/kernel/linux/linux-6.6/drivers/nubus/
H A Dnubus.c227 struct nubus_dir *dir) in nubus_get_root_dir()
229 dir->ptr = dir->base = board->directory; in nubus_get_root_dir()
230 dir->done = 0; in nubus_get_root_dir()
231 dir->mask = board->lanes; in nubus_get_root_dir()
237 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) in nubus_get_func_dir() argument
239 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir()
240 dir->done = 0; in nubus_get_func_dir()
241 dir in nubus_get_func_dir()
226 nubus_get_root_dir(const struct nubus_board *board, struct nubus_dir *dir) nubus_get_root_dir() argument
246 nubus_get_board_dir(const struct nubus_board *board, struct nubus_dir *dir) nubus_get_board_dir() argument
265 nubus_get_subdir(const struct nubus_dirent *ent, struct nubus_dir *dir) nubus_get_subdir() argument
304 nubus_rewinddir(struct nubus_dir *dir) nubus_rewinddir() argument
330 nubus_find_rsrc(struct nubus_dir *dir, unsigned char rsrc_type, struct nubus_dirent *ent) nubus_find_rsrc() argument
349 struct nubus_dir dir; nubus_get_block_rsrc_dir() local
369 struct nubus_dir dir; nubus_get_display_vidmode() local
500 struct nubus_dir dir; nubus_get_functional_resource() local
615 struct nubus_dir dir; nubus_get_vendorinfo() local
641 struct nubus_dir dir; nubus_get_board_resource() local
729 struct nubus_dir dir; nubus_add_board() local
[all...]
/kernel/linux/linux-5.10/fs/reiserfs/
H A Dnamei.c304 static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen, in reiserfs_find_entry() argument
311 if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) in reiserfs_find_entry()
315 make_cpu_key(&key_to_search, dir, in reiserfs_find_entry()
316 get_third_component(dir->i_sb, name, namelen), in reiserfs_find_entry()
321 search_by_entry_key(dir->i_sb, &key_to_search, in reiserfs_find_entry()
324 reiserfs_error(dir->i_sb, "zam-7001", "io error"); in reiserfs_find_entry()
352 static struct dentry *reiserfs_lookup(struct inode *dir, struct dentry *dentry, in reiserfs_lookup() argument
360 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup()
363 reiserfs_write_lock(dir->i_sb); in reiserfs_lookup()
367 reiserfs_find_entry(dir, dentr in reiserfs_lookup()
406 struct inode *dir = d_inode(child); reiserfs_get_parent() local
432 reiserfs_add_entry(struct reiserfs_transaction_handle *th, struct inode *dir, const char *name, int namelen, struct inode *inode, int visible) reiserfs_add_entry() argument
606 new_inode_init(struct inode *inode, struct inode *dir, umode_t mode) new_inode_init() argument
622 reiserfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) reiserfs_create() argument
702 reiserfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) reiserfs_mknod() argument
786 reiserfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) reiserfs_mkdir() argument
900 reiserfs_rmdir(struct inode *dir, struct dentry *dentry) reiserfs_rmdir() argument
997 reiserfs_unlink(struct inode *dir, struct dentry *dentry) reiserfs_unlink() argument
1201 reiserfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) reiserfs_link() argument
[all...]
/kernel/linux/linux-5.10/fs/ocfs2/
H A Ddir.c5 * dir.c
11 * Portions of this code from linux/fs/ext3/dir.c
20 * linux/fs/minix/dir.c
39 #include "dir.h"
60 struct inode *dir,
71 static int ocfs2_supports_dir_trailer(struct inode *dir) in ocfs2_supports_dir_trailer() argument
73 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer()
75 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer()
78 return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir); in ocfs2_supports_dir_trailer()
89 static int ocfs2_new_dir_wants_trailer(struct inode *dir) in ocfs2_new_dir_wants_trailer() argument
119 ocfs2_skip_dir_trailer(struct inode *dir, struct ocfs2_dir_entry *de, unsigned long offset, unsigned long blklen) ocfs2_skip_dir_trailer() argument
153 ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, struct buffer_head *dx_root_bh, struct buffer_head *dirdata_bh) ocfs2_dx_dir_link_trailer() argument
253 ocfs2_dx_dir_name_hash(struct inode *dir, const char *name, int len, struct ocfs2_dx_hinfo *hinfo) ocfs2_dx_dir_name_hash() argument
299 ocfs2_check_dir_entry(struct inode *dir, struct ocfs2_dir_entry *de, struct buffer_head *bh, char *buf, unsigned int size, unsigned long offset) ocfs2_check_dir_entry() argument
346 ocfs2_search_dirblock(struct buffer_head *bh, struct inode *dir, const char *name, int namelen, unsigned long offset, char *first_de, unsigned int bytes, struct ocfs2_dir_entry **res_dir) ocfs2_search_dirblock() argument
397 ocfs2_find_entry_id(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_entry **res_dir) ocfs2_find_entry_id() argument
465 ocfs2_check_dir_trailer(struct inode *dir, struct buffer_head *bh) ocfs2_check_dir_trailer() argument
541 ocfs2_read_dir_block_direct(struct inode *dir, u64 phys, struct buffer_head **bh) ocfs2_read_dir_block_direct() argument
598 ocfs2_read_dx_root(struct inode *dir, struct ocfs2_dinode *di, struct buffer_head **dx_root_bh) ocfs2_read_dx_root() argument
639 ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, struct buffer_head **dx_leaf_bh) ocfs2_read_dx_leaf() argument
659 ocfs2_read_dx_leaves(struct inode *dir, u64 start, int num, struct buffer_head **dx_leaf_bhs) ocfs2_read_dx_leaves() argument
672 ocfs2_find_entry_el(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_entry **res_dir) ocfs2_find_entry_el() argument
897 ocfs2_dx_dir_search(const char *name, int namelen, struct inode *dir, struct ocfs2_dx_root_block *dx_root, struct ocfs2_dir_lookup_result *res) ocfs2_dx_dir_search() argument
1011 ocfs2_find_entry_dx(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_entry_dx() argument
1065 ocfs2_find_entry(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_entry() argument
1095 ocfs2_update_entry(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *res, struct inode *new_entry_inode) ocfs2_update_entry() argument
1133 __ocfs2_delete_entry(handle_t *handle, struct inode *dir, struct ocfs2_dir_entry *de_del, struct buffer_head *bh, char *first_de, unsigned int bytes) __ocfs2_delete_entry() argument
1237 ocfs2_delete_entry_dx(handle_t *handle, struct inode *dir, struct ocfs2_dir_lookup_result *lookup) ocfs2_delete_entry_dx() argument
1353 ocfs2_delete_entry_id(handle_t *handle, struct inode *dir, struct ocfs2_dir_entry *de_del, struct buffer_head *bh) ocfs2_delete_entry_id() argument
1380 ocfs2_delete_entry_el(handle_t *handle, struct inode *dir, struct ocfs2_dir_entry *de_del, struct buffer_head *bh) ocfs2_delete_entry_el() argument
1393 ocfs2_delete_entry(handle_t *handle, struct inode *dir, struct ocfs2_dir_lookup_result *res) ocfs2_delete_entry() argument
1462 __ocfs2_dx_dir_leaf_insert(struct inode *dir, handle_t *handle, struct ocfs2_dx_hinfo *hinfo, u64 dirent_blk, struct buffer_head *dx_leaf_bh) __ocfs2_dx_dir_leaf_insert() argument
1485 ocfs2_dx_inline_root_insert(struct inode *dir, handle_t *handle, struct ocfs2_dx_hinfo *hinfo, u64 dirent_blk, struct ocfs2_dx_root_block *dx_root) ocfs2_dx_inline_root_insert() argument
1493 ocfs2_dx_dir_insert(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *lookup) ocfs2_dx_dir_insert() argument
1528 ocfs2_remove_block_from_free_list(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *lookup) ocfs2_remove_block_from_free_list() argument
1559 ocfs2_recalc_free_list(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *lookup) ocfs2_recalc_free_list() argument
1587 __ocfs2_add_entry(handle_t *handle, struct inode *dir, const char *name, int namelen, struct inode *inode, u64 blkno, struct buffer_head *parent_fe_bh, struct ocfs2_dir_lookup_result *lookup) __ocfs2_add_entry() argument
2000 ocfs2_lookup_ino_from_name(struct inode *dir, const char *name, int namelen, u64 *blkno) ocfs2_lookup_ino_from_name() argument
2019 ocfs2_check_dir_for_entry(struct inode *dir, const char *name, int namelen) ocfs2_check_dir_for_entry() argument
2293 ocfs2_dx_dir_attach_index(struct ocfs2_super *osb, handle_t *handle, struct inode *dir, struct buffer_head *di_bh, struct buffer_head *dirdata_bh, struct ocfs2_alloc_context *meta_ac, int dx_inline, u32 num_entries, struct buffer_head **ret_dx_root_bh) ocfs2_dx_dir_attach_index() argument
2385 ocfs2_dx_dir_format_cluster(struct ocfs2_super *osb, handle_t *handle, struct inode *dir, struct buffer_head **dx_leaves, int num_dx_leaves, u64 start_blk) ocfs2_dx_dir_format_cluster() argument
2438 __ocfs2_dx_dir_new_cluster(struct inode *dir, u32 cpos, handle_t *handle, struct ocfs2_alloc_context *data_ac, struct buffer_head **dx_leaves, int num_dx_leaves, u64 *ret_phys_blkno) __ocfs2_dx_dir_new_cluster() argument
2478 ocfs2_dx_dir_new_cluster(struct inode *dir, struct ocfs2_extent_tree *et, u32 cpos, handle_t *handle, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct buffer_head **dx_leaves, int num_dx_leaves) ocfs2_dx_dir_new_cluster() argument
2595 ocfs2_dx_dir_index_block(struct inode *dir, handle_t *handle, struct buffer_head **dx_leaves, int num_dx_leaves, u32 *num_dx_entries, struct buffer_head *dirent_bh) ocfs2_dx_dir_index_block() argument
2644 ocfs2_dx_dir_index_root_block(struct inode *dir, struct buffer_head *dx_root_bh, struct buffer_head *dirent_bh) ocfs2_dx_dir_index_root_block() argument
2687 ocfs2_new_dx_should_be_inline(struct inode *dir, struct buffer_head *di_bh) ocfs2_new_dx_should_be_inline() argument
2725 ocfs2_expand_last_dirent(char *start, unsigned int old_size, struct inode *dir) ocfs2_expand_last_dirent() argument
2775 ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, unsigned int blocks_wanted, struct ocfs2_dir_lookup_result *lookup, struct buffer_head **first_block_bh) ocfs2_expand_inline_dir() argument
3092 ocfs2_do_extend_dir(struct super_block *sb, handle_t *handle, struct inode *dir, struct buffer_head *parent_fe_bh, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct buffer_head **new_bh) ocfs2_do_extend_dir() argument
3157 ocfs2_extend_dir(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *parent_fe_bh, unsigned int blocks_wanted, struct ocfs2_dir_lookup_result *lookup, struct buffer_head **new_de_bh) ocfs2_extend_dir() argument
3346 ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, const char *name, int namelen, struct buffer_head **ret_de_bh, unsigned int *blocks_wanted) ocfs2_find_dir_space_id() argument
3419 ocfs2_find_dir_space_el(struct inode *dir, const char *name, int namelen, struct buffer_head **ret_de_bh) ocfs2_find_dir_space_el() argument
3641 ocfs2_dx_dir_transfer_leaf(struct inode *dir, u32 split_hash, handle_t *handle, struct ocfs2_dx_leaf *tmp_dx_leaf, struct buffer_head **orig_dx_leaves, struct buffer_head **new_dx_leaves, int num_dx_leaves) ocfs2_dx_dir_transfer_leaf() argument
3698 ocfs2_dx_dir_rebalance(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *dx_root_bh, struct buffer_head *dx_leaf_bh, struct ocfs2_dx_hinfo *hinfo, u32 leaf_cpos, u64 leaf_blkno) ocfs2_dx_dir_rebalance() argument
3893 ocfs2_find_dir_space_dx(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *di_bh, struct buffer_head *dx_root_bh, const char *name, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_dir_space_dx() argument
3966 ocfs2_search_dx_free_list(struct inode *dir, struct buffer_head *dx_root_bh, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_search_dx_free_list() argument
4014 ocfs2_expand_inline_dx_root(struct inode *dir, struct buffer_head *dx_root_bh) ocfs2_expand_inline_dx_root() argument
4145 ocfs2_prepare_dx_dir_for_insert(struct inode *dir, struct buffer_head *di_bh, const char *name, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_prepare_dx_dir_for_insert() argument
4247 ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *parent_fe_bh, const char *name, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_prepare_dir_for_insert() argument
4324 ocfs2_dx_dir_remove_index(struct inode *dir, struct buffer_head *di_bh, struct buffer_head *dx_root_bh) ocfs2_dx_dir_remove_index() argument
4405 ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) ocfs2_dx_dir_truncate() argument
[all...]
/kernel/linux/linux-6.6/fs/ocfs2/
H A Ddir.c3 * dir.c
9 * Portions of this code from linux/fs/ext3/dir.c
18 * linux/fs/minix/dir.c
37 #include "dir.h"
58 struct inode *dir,
69 static int ocfs2_supports_dir_trailer(struct inode *dir) in ocfs2_supports_dir_trailer() argument
71 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer()
73 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer()
76 return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir); in ocfs2_supports_dir_trailer()
87 static int ocfs2_new_dir_wants_trailer(struct inode *dir) in ocfs2_new_dir_wants_trailer() argument
117 ocfs2_skip_dir_trailer(struct inode *dir, struct ocfs2_dir_entry *de, unsigned long offset, unsigned long blklen) ocfs2_skip_dir_trailer() argument
151 ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, struct buffer_head *dx_root_bh, struct buffer_head *dirdata_bh) ocfs2_dx_dir_link_trailer() argument
251 ocfs2_dx_dir_name_hash(struct inode *dir, const char *name, int len, struct ocfs2_dx_hinfo *hinfo) ocfs2_dx_dir_name_hash() argument
297 ocfs2_check_dir_entry(struct inode * dir, struct ocfs2_dir_entry * de, struct buffer_head * bh, unsigned long offset) ocfs2_check_dir_entry() argument
339 ocfs2_search_dirblock(struct buffer_head *bh, struct inode *dir, const char *name, int namelen, unsigned long offset, char *first_de, unsigned int bytes, struct ocfs2_dir_entry **res_dir) ocfs2_search_dirblock() argument
389 ocfs2_find_entry_id(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_entry **res_dir) ocfs2_find_entry_id() argument
457 ocfs2_check_dir_trailer(struct inode *dir, struct buffer_head *bh) ocfs2_check_dir_trailer() argument
533 ocfs2_read_dir_block_direct(struct inode *dir, u64 phys, struct buffer_head **bh) ocfs2_read_dir_block_direct() argument
590 ocfs2_read_dx_root(struct inode *dir, struct ocfs2_dinode *di, struct buffer_head **dx_root_bh) ocfs2_read_dx_root() argument
631 ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, struct buffer_head **dx_leaf_bh) ocfs2_read_dx_leaf() argument
651 ocfs2_read_dx_leaves(struct inode *dir, u64 start, int num, struct buffer_head **dx_leaf_bhs) ocfs2_read_dx_leaves() argument
664 ocfs2_find_entry_el(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_entry **res_dir) ocfs2_find_entry_el() argument
889 ocfs2_dx_dir_search(const char *name, int namelen, struct inode *dir, struct ocfs2_dx_root_block *dx_root, struct ocfs2_dir_lookup_result *res) ocfs2_dx_dir_search() argument
1003 ocfs2_find_entry_dx(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_entry_dx() argument
1057 ocfs2_find_entry(const char *name, int namelen, struct inode *dir, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_entry() argument
1087 ocfs2_update_entry(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *res, struct inode *new_entry_inode) ocfs2_update_entry() argument
1125 __ocfs2_delete_entry(handle_t *handle, struct inode *dir, struct ocfs2_dir_entry *de_del, struct buffer_head *bh, char *first_de, unsigned int bytes) __ocfs2_delete_entry() argument
1229 ocfs2_delete_entry_dx(handle_t *handle, struct inode *dir, struct ocfs2_dir_lookup_result *lookup) ocfs2_delete_entry_dx() argument
1345 ocfs2_delete_entry_id(handle_t *handle, struct inode *dir, struct ocfs2_dir_entry *de_del, struct buffer_head *bh) ocfs2_delete_entry_id() argument
1372 ocfs2_delete_entry_el(handle_t *handle, struct inode *dir, struct ocfs2_dir_entry *de_del, struct buffer_head *bh) ocfs2_delete_entry_el() argument
1385 ocfs2_delete_entry(handle_t *handle, struct inode *dir, struct ocfs2_dir_lookup_result *res) ocfs2_delete_entry() argument
1454 __ocfs2_dx_dir_leaf_insert(struct inode *dir, handle_t *handle, struct ocfs2_dx_hinfo *hinfo, u64 dirent_blk, struct buffer_head *dx_leaf_bh) __ocfs2_dx_dir_leaf_insert() argument
1477 ocfs2_dx_inline_root_insert(struct inode *dir, handle_t *handle, struct ocfs2_dx_hinfo *hinfo, u64 dirent_blk, struct ocfs2_dx_root_block *dx_root) ocfs2_dx_inline_root_insert() argument
1485 ocfs2_dx_dir_insert(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *lookup) ocfs2_dx_dir_insert() argument
1520 ocfs2_remove_block_from_free_list(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *lookup) ocfs2_remove_block_from_free_list() argument
1551 ocfs2_recalc_free_list(struct inode *dir, handle_t *handle, struct ocfs2_dir_lookup_result *lookup) ocfs2_recalc_free_list() argument
1579 __ocfs2_add_entry(handle_t *handle, struct inode *dir, const char *name, int namelen, struct inode *inode, u64 blkno, struct buffer_head *parent_fe_bh, struct ocfs2_dir_lookup_result *lookup) __ocfs2_add_entry() argument
1989 ocfs2_lookup_ino_from_name(struct inode *dir, const char *name, int namelen, u64 *blkno) ocfs2_lookup_ino_from_name() argument
2008 ocfs2_check_dir_for_entry(struct inode *dir, const char *name, int namelen) ocfs2_check_dir_for_entry() argument
2282 ocfs2_dx_dir_attach_index(struct ocfs2_super *osb, handle_t *handle, struct inode *dir, struct buffer_head *di_bh, struct buffer_head *dirdata_bh, struct ocfs2_alloc_context *meta_ac, int dx_inline, u32 num_entries, struct buffer_head **ret_dx_root_bh) ocfs2_dx_dir_attach_index() argument
2374 ocfs2_dx_dir_format_cluster(struct ocfs2_super *osb, handle_t *handle, struct inode *dir, struct buffer_head **dx_leaves, int num_dx_leaves, u64 start_blk) ocfs2_dx_dir_format_cluster() argument
2427 __ocfs2_dx_dir_new_cluster(struct inode *dir, u32 cpos, handle_t *handle, struct ocfs2_alloc_context *data_ac, struct buffer_head **dx_leaves, int num_dx_leaves, u64 *ret_phys_blkno) __ocfs2_dx_dir_new_cluster() argument
2467 ocfs2_dx_dir_new_cluster(struct inode *dir, struct ocfs2_extent_tree *et, u32 cpos, handle_t *handle, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct buffer_head **dx_leaves, int num_dx_leaves) ocfs2_dx_dir_new_cluster() argument
2584 ocfs2_dx_dir_index_block(struct inode *dir, handle_t *handle, struct buffer_head **dx_leaves, int num_dx_leaves, u32 *num_dx_entries, struct buffer_head *dirent_bh) ocfs2_dx_dir_index_block() argument
2633 ocfs2_dx_dir_index_root_block(struct inode *dir, struct buffer_head *dx_root_bh, struct buffer_head *dirent_bh) ocfs2_dx_dir_index_root_block() argument
2676 ocfs2_new_dx_should_be_inline(struct inode *dir, struct buffer_head *di_bh) ocfs2_new_dx_should_be_inline() argument
2714 ocfs2_expand_last_dirent(char *start, unsigned int old_size, struct inode *dir) ocfs2_expand_last_dirent() argument
2764 ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, unsigned int blocks_wanted, struct ocfs2_dir_lookup_result *lookup, struct buffer_head **first_block_bh) ocfs2_expand_inline_dir() argument
3081 ocfs2_do_extend_dir(struct super_block *sb, handle_t *handle, struct inode *dir, struct buffer_head *parent_fe_bh, struct ocfs2_alloc_context *data_ac, struct ocfs2_alloc_context *meta_ac, struct buffer_head **new_bh) ocfs2_do_extend_dir() argument
3146 ocfs2_extend_dir(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *parent_fe_bh, unsigned int blocks_wanted, struct ocfs2_dir_lookup_result *lookup, struct buffer_head **new_de_bh) ocfs2_extend_dir() argument
3335 ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, const char *name, int namelen, struct buffer_head **ret_de_bh, unsigned int *blocks_wanted) ocfs2_find_dir_space_id() argument
3406 ocfs2_find_dir_space_el(struct inode *dir, const char *name, int namelen, struct buffer_head **ret_de_bh) ocfs2_find_dir_space_el() argument
3627 ocfs2_dx_dir_transfer_leaf(struct inode *dir, u32 split_hash, handle_t *handle, struct ocfs2_dx_leaf *tmp_dx_leaf, struct buffer_head **orig_dx_leaves, struct buffer_head **new_dx_leaves, int num_dx_leaves) ocfs2_dx_dir_transfer_leaf() argument
3684 ocfs2_dx_dir_rebalance(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *dx_root_bh, struct buffer_head *dx_leaf_bh, struct ocfs2_dx_hinfo *hinfo, u32 leaf_cpos, u64 leaf_blkno) ocfs2_dx_dir_rebalance() argument
3879 ocfs2_find_dir_space_dx(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *di_bh, struct buffer_head *dx_root_bh, const char *name, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_dir_space_dx() argument
3952 ocfs2_search_dx_free_list(struct inode *dir, struct buffer_head *dx_root_bh, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_search_dx_free_list() argument
4000 ocfs2_expand_inline_dx_root(struct inode *dir, struct buffer_head *dx_root_bh) ocfs2_expand_inline_dx_root() argument
4131 ocfs2_prepare_dx_dir_for_insert(struct inode *dir, struct buffer_head *di_bh, const char *name, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_prepare_dx_dir_for_insert() argument
4233 ocfs2_prepare_dir_for_insert(struct ocfs2_super *osb, struct inode *dir, struct buffer_head *parent_fe_bh, const char *name, int namelen, struct ocfs2_dir_lookup_result *lookup) ocfs2_prepare_dir_for_insert() argument
4310 ocfs2_dx_dir_remove_index(struct inode *dir, struct buffer_head *di_bh, struct buffer_head *dx_root_bh) ocfs2_dx_dir_remove_index() argument
4391 ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) ocfs2_dx_dir_truncate() argument
[all...]
/kernel/linux/linux-5.10/fs/hpfs/
H A Dnamei.c12 static void hpfs_update_directory_times(struct inode *dir) in hpfs_update_directory_times() argument
14 time64_t t = local_to_gmt(dir->i_sb, local_get_seconds(dir->i_sb)); in hpfs_update_directory_times()
15 if (t == dir->i_mtime.tv_sec && in hpfs_update_directory_times()
16 t == dir->i_ctime.tv_sec) in hpfs_update_directory_times()
18 dir->i_mtime.tv_sec = dir->i_ctime.tv_sec = t; in hpfs_update_directory_times()
19 dir->i_mtime.tv_nsec = dir->i_ctime.tv_nsec = 0; in hpfs_update_directory_times()
20 hpfs_write_inode_nolock(dir); in hpfs_update_directory_times()
23 hpfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) hpfs_mkdir() argument
131 hpfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) hpfs_create() argument
218 hpfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) hpfs_mknod() argument
292 hpfs_symlink(struct inode *dir, struct dentry *dentry, const char *symlink) hpfs_symlink() argument
371 hpfs_unlink(struct inode *dir, struct dentry *dentry) hpfs_unlink() argument
422 hpfs_rmdir(struct inode *dir, struct dentry *dentry) hpfs_rmdir() argument
[all...]
/kernel/linux/linux-6.6/fs/reiserfs/
H A Dnamei.c305 static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen, in reiserfs_find_entry() argument
312 if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) in reiserfs_find_entry()
316 make_cpu_key(&key_to_search, dir, in reiserfs_find_entry()
317 get_third_component(dir->i_sb, name, namelen), in reiserfs_find_entry()
322 search_by_entry_key(dir->i_sb, &key_to_search, in reiserfs_find_entry()
325 reiserfs_error(dir->i_sb, "zam-7001", "io error"); in reiserfs_find_entry()
353 static struct dentry *reiserfs_lookup(struct inode *dir, struct dentry *dentry, in reiserfs_lookup() argument
361 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup()
364 reiserfs_write_lock(dir->i_sb); in reiserfs_lookup()
368 reiserfs_find_entry(dir, dentr in reiserfs_lookup()
405 struct inode *dir = d_inode(child); reiserfs_get_parent() local
431 reiserfs_add_entry(struct reiserfs_transaction_handle *th, struct inode *dir, const char *name, int namelen, struct inode *inode, int visible) reiserfs_add_entry() argument
605 new_inode_init(struct inode *inode, struct inode *dir, umode_t mode) new_inode_init() argument
621 reiserfs_create(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) reiserfs_create() argument
701 reiserfs_mknod(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) reiserfs_mknod() argument
785 reiserfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode) reiserfs_mkdir() argument
900 reiserfs_rmdir(struct inode *dir, struct dentry *dentry) reiserfs_rmdir() argument
998 reiserfs_unlink(struct inode *dir, struct dentry *dentry) reiserfs_unlink() argument
1203 reiserfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) reiserfs_link() argument
[all...]
/kernel/linux/linux-6.6/fs/hpfs/
H A Dnamei.c12 static void hpfs_update_directory_times(struct inode *dir) in hpfs_update_directory_times() argument
14 time64_t t = local_to_gmt(dir->i_sb, local_get_seconds(dir->i_sb)); in hpfs_update_directory_times()
15 if (t == dir->i_mtime.tv_sec && in hpfs_update_directory_times()
16 t == inode_get_ctime(dir).tv_sec) in hpfs_update_directory_times()
18 dir->i_mtime = inode_set_ctime(dir, t, 0); in hpfs_update_directory_times()
19 hpfs_write_inode_nolock(dir); in hpfs_update_directory_times()
22 static int hpfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hpfs_mkdir() argument
39 hpfs_lock(dir in hpfs_mkdir()
129 hpfs_create(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) hpfs_create() argument
215 hpfs_mknod(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) hpfs_mknod() argument
288 hpfs_symlink(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, const char *symlink) hpfs_symlink() argument
366 hpfs_unlink(struct inode *dir, struct dentry *dentry) hpfs_unlink() argument
417 hpfs_rmdir(struct inode *dir, struct dentry *dentry) hpfs_rmdir() argument
[all...]
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dproperty.c100 struct tb_property_dir *dir; in tb_property_parse() local
116 dir = __tb_property_parse_dir(block, block_len, entry->value, in tb_property_parse()
118 if (!dir) { in tb_property_parse()
122 property->value.dir = dir; in tb_property_parse()
167 struct tb_property_dir *dir; in __tb_property_parse_dir() local
169 dir = kzalloc(sizeof(*dir), GFP_KERNEL); in __tb_property_parse_dir()
170 if (!dir) in __tb_property_parse_dir()
177 dir in __tb_property_parse_dir()
244 struct tb_property_dir *dir; tb_property_create_dir() local
293 tb_property_free_dir(struct tb_property_dir *dir) tb_property_free_dir() argument
309 tb_property_dir_length(const struct tb_property_dir *dir, bool recurse, size_t *data_len) tb_property_dir_length() argument
348 __tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, unsigned int start_offset, size_t block_len) __tb_property_format_dir() argument
488 tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, size_t block_len) tb_property_format_dir() argument
609 tb_property_add_dir(struct tb_property_dir *parent, const char *key, struct tb_property_dir *dir) tb_property_add_dir() argument
651 tb_property_find(struct tb_property_dir *dir, const char *key, enum tb_property_type type) tb_property_find() argument
670 tb_property_get_next(struct tb_property_dir *dir, struct tb_property *prev) tb_property_get_next() argument
[all...]
/kernel/linux/linux-5.10/fs/exfat/
H A Dnamei.c228 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_search_empty_slot()
244 clu.dir, clu.size, clu.flags); in exfat_search_empty_slot()
260 p_dir->dir, clu.dir); in exfat_search_empty_slot()
277 clu.dir++; in exfat_search_empty_slot()
279 clu.dir = EXFAT_EOF_CLUSTER; in exfat_search_empty_slot()
281 if (exfat_get_next_cluster(sb, &clu.dir)) in exfat_search_empty_slot()
293 * exFAT spec allows a dir to grow up to 8388608(256MB) in exfat_check_max_dentries()
353 if (exfat_zeroed_cluster(inode, clu.dir)) in exfat_find_empty_entry()
357 ei->start_clu = clu.dir; in exfat_find_empty_entry()
463 exfat_resolve_path(struct inode *inode, const unsigned char *path, struct exfat_chain *dir, struct exfat_uni_name *uni) exfat_resolve_path() argument
470 exfat_resolve_path_for_lookup(struct inode *inode, const unsigned char *path, struct exfat_chain *dir, struct exfat_uni_name *uni) exfat_resolve_path_for_lookup() argument
555 exfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) exfat_create() argument
599 exfat_find(struct inode *dir, struct qstr *qname, struct exfat_dir_entry *info) exfat_find() argument
708 exfat_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) exfat_lookup() argument
785 exfat_unlink(struct inode *dir, struct dentry *dentry) exfat_unlink() argument
848 exfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) exfat_mkdir() argument
939 exfat_rmdir(struct inode *dir, struct dentry *dentry) exfat_rmdir() argument
[all...]
/kernel/linux/linux-6.6/drivers/dma/dw-edma/
H A Ddw-hdma-v0-debugfs.c35 #define CTX_REGISTER(dw, name, dir, ch) \
36 {#name, REGS_CH_ADDR(dw, name, dir, ch)}
79 static void dw_hdma_debugfs_regs_ch(struct dw_edma *dw, enum dw_edma_dir dir, in dw_hdma_debugfs_regs_ch() argument
83 CTX_REGISTER(dw, ch_en, dir, ch), in dw_hdma_debugfs_regs_ch()
84 CTX_REGISTER(dw, doorbell, dir, ch), in dw_hdma_debugfs_regs_ch()
85 CTX_REGISTER(dw, prefetch, dir, ch), in dw_hdma_debugfs_regs_ch()
86 CTX_REGISTER(dw, handshake, dir, ch), in dw_hdma_debugfs_regs_ch()
87 CTX_REGISTER(dw, llp.lsb, dir, ch), in dw_hdma_debugfs_regs_ch()
88 CTX_REGISTER(dw, llp.msb, dir, ch), in dw_hdma_debugfs_regs_ch()
89 CTX_REGISTER(dw, cycle_sync, dir, c in dw_hdma_debugfs_regs_ch()
[all...]
/kernel/linux/linux-6.6/fs/f2fs/
H A Ddir.c3 * fs/f2fs/dir.c
45 /* If @dir is casefolded, initialize @fname->cf_name from @fname->usr_fname. */
46 int f2fs_init_casefolded_name(const struct inode *dir, in f2fs_init_casefolded_name() argument
50 struct super_block *sb = dir->i_sb; in f2fs_init_casefolded_name()
52 if (IS_CASEFOLDED(dir) && in f2fs_init_casefolded_name()
74 static int __f2fs_setup_filename(const struct inode *dir, in __f2fs_setup_filename() argument
91 err = f2fs_init_casefolded_name(dir, fname); in __f2fs_setup_filename()
96 f2fs_hash_filename(dir, fname); in __f2fs_setup_filename()
102 * Prepare to search for @iname in @dir. This is similar to
107 int f2fs_setup_filename(struct inode *dir, cons argument
126 f2fs_prepare_lookup(struct inode *dir, struct dentry *dentry, struct f2fs_filename *fname) f2fs_prepare_lookup() argument
165 find_in_block(struct inode *dir, struct page *dentry_page, const struct f2fs_filename *fname, int *max_slots) find_in_block() argument
186 f2fs_match_ci_name(const struct inode *dir, const struct qstr *name, const u8 *de_name, u32 de_name_len) f2fs_match_ci_name() argument
231 f2fs_match_name(const struct inode *dir, const struct f2fs_filename *fname, const u8 *de_name, u32 de_name_len) f2fs_match_name() argument
300 find_in_level(struct inode *dir, unsigned int level, const struct f2fs_filename *fname, struct page **res_page) find_in_level() argument
360 __f2fs_find_entry(struct inode *dir, const struct f2fs_filename *fname, struct page **res_page) __f2fs_find_entry() argument
405 f2fs_find_entry(struct inode *dir, const struct qstr *child, struct page **res_page) f2fs_find_entry() argument
427 f2fs_parent_dir(struct inode *dir, struct page **p) f2fs_parent_dir() argument
432 f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr, struct page **page) f2fs_inode_by_name() argument
447 f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de, struct page *page, struct inode *inode) f2fs_set_link() argument
463 init_dent_inode(struct inode *dir, struct inode *inode, const struct f2fs_filename *fname, struct page *ipage) init_dent_inode() argument
536 f2fs_init_inode_metadata(struct inode *inode, struct inode *dir, const struct f2fs_filename *fname, struct page *dpage) f2fs_init_inode_metadata() argument
604 f2fs_update_parent_metadata(struct inode *dir, struct inode *inode, unsigned int current_depth) f2fs_update_parent_metadata() argument
642 f2fs_has_enough_room(struct inode *dir, struct page *ipage, const struct f2fs_filename *fname) f2fs_has_enough_room() argument
678 f2fs_add_regular_entry(struct inode *dir, const struct f2fs_filename *fname, struct inode *inode, nid_t ino, umode_t mode) f2fs_add_regular_entry() argument
773 f2fs_add_dentry(struct inode *dir, const struct f2fs_filename *fname, struct inode *inode, nid_t ino, umode_t mode) f2fs_add_dentry() argument
798 f2fs_do_add_link(struct inode *dir, const struct qstr *name, struct inode *inode, nid_t ino, umode_t mode) f2fs_do_add_link() argument
833 f2fs_do_tmpfile(struct inode *inode, struct inode *dir, struct f2fs_filename *fname) f2fs_do_tmpfile() argument
854 f2fs_drop_nlink(struct inode *dir, struct inode *inode) f2fs_drop_nlink() argument
881 f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page, struct inode *dir, struct inode *inode) f2fs_delete_entry() argument
930 f2fs_empty_dir(struct inode *dir) f2fs_empty_dir() argument
[all...]
/kernel/linux/linux-5.10/kernel/dma/
H A Dmapping.c141 size_t offset, size_t size, enum dma_data_direction dir, in dma_map_page_attrs()
147 BUG_ON(!valid_dma_direction(dir)); in dma_map_page_attrs()
153 addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs()
155 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs()
156 debug_dma_map_page(dev, page, offset, size, dir, addr); in dma_map_page_attrs()
163 enum dma_data_direction dir, unsigned long attrs) in dma_unmap_page_attrs()
167 BUG_ON(!valid_dma_direction(dir)); in dma_unmap_page_attrs()
169 dma_direct_unmap_page(dev, addr, size, dir, attrs); in dma_unmap_page_attrs()
171 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_page_attrs()
172 debug_dma_unmap_page(dev, addr, size, dir); in dma_unmap_page_attrs()
140 dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_page_attrs() argument
162 dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_page_attrs() argument
180 dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) dma_map_sg_attrs() argument
202 dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) dma_unmap_sg_attrs() argument
217 dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_resource() argument
242 dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_resource() argument
254 dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_cpu() argument
268 dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_device() argument
282 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) dma_sync_sg_for_cpu() argument
296 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) dma_sync_sg_for_device() argument
474 dma_alloc_pages(struct device *dev, size_t size, dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) dma_alloc_pages() argument
499 dma_free_pages(struct device *dev, size_t size, struct page *page, dma_addr_t dma_handle, enum dma_data_direction dir) dma_free_pages() argument
514 dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp) dma_alloc_noncoherent() argument
538 dma_free_noncoherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle, enum dma_data_direction dir) dma_free_noncoherent() argument
[all...]
/kernel/linux/linux-5.10/fs/f2fs/
H A Ddir.c3 * fs/f2fs/dir.c
73 /* If @dir is casefolded, initialize @fname->cf_name from @fname->usr_fname. */
74 int f2fs_init_casefolded_name(const struct inode *dir, in f2fs_init_casefolded_name() argument
78 struct super_block *sb = dir->i_sb; in f2fs_init_casefolded_name()
81 if (IS_CASEFOLDED(dir)) { in f2fs_init_casefolded_name()
102 static int __f2fs_setup_filename(const struct inode *dir, in __f2fs_setup_filename() argument
119 err = f2fs_init_casefolded_name(dir, fname); in __f2fs_setup_filename()
124 f2fs_hash_filename(dir, fname); in __f2fs_setup_filename()
130 * Prepare to search for @iname in @dir. This is similar to
135 int f2fs_setup_filename(struct inode *dir, cons argument
154 f2fs_prepare_lookup(struct inode *dir, struct dentry *dentry, struct f2fs_filename *fname) f2fs_prepare_lookup() argument
191 find_in_block(struct inode *dir, struct page *dentry_page, const struct f2fs_filename *fname, int *max_slots) find_in_block() argument
210 f2fs_match_ci_name(const struct inode *dir, const struct qstr *name, const u8 *de_name, u32 de_name_len) f2fs_match_ci_name() argument
232 f2fs_match_name(const struct inode *dir, const struct f2fs_filename *fname, const u8 *de_name, u32 de_name_len) f2fs_match_name() argument
295 find_in_level(struct inode *dir, unsigned int level, const struct f2fs_filename *fname, struct page **res_page) find_in_level() argument
347 __f2fs_find_entry(struct inode *dir, const struct f2fs_filename *fname, struct page **res_page) __f2fs_find_entry() argument
392 f2fs_find_entry(struct inode *dir, const struct qstr *child, struct page **res_page) f2fs_find_entry() argument
414 f2fs_parent_dir(struct inode *dir, struct page **p) f2fs_parent_dir() argument
421 f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr, struct page **page) f2fs_inode_by_name() argument
436 f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de, struct page *page, struct inode *inode) f2fs_set_link() argument
502 f2fs_init_inode_metadata(struct inode *inode, struct inode *dir, const struct f2fs_filename *fname, struct page *dpage) f2fs_init_inode_metadata() argument
574 f2fs_update_parent_metadata(struct inode *dir, struct inode *inode, unsigned int current_depth) f2fs_update_parent_metadata() argument
612 f2fs_has_enough_room(struct inode *dir, struct page *ipage, const struct f2fs_filename *fname) f2fs_has_enough_room() argument
648 f2fs_add_regular_entry(struct inode *dir, const struct f2fs_filename *fname, struct inode *inode, nid_t ino, umode_t mode) f2fs_add_regular_entry() argument
745 f2fs_add_dentry(struct inode *dir, const struct f2fs_filename *fname, struct inode *inode, nid_t ino, umode_t mode) f2fs_add_dentry() argument
763 f2fs_do_add_link(struct inode *dir, const struct qstr *name, struct inode *inode, nid_t ino, umode_t mode) f2fs_do_add_link() argument
798 f2fs_do_tmpfile(struct inode *inode, struct inode *dir) f2fs_do_tmpfile() argument
818 f2fs_drop_nlink(struct inode *dir, struct inode *inode) f2fs_drop_nlink() argument
845 f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page, struct inode *dir, struct inode *inode) f2fs_delete_entry() argument
894 f2fs_empty_dir(struct inode *dir) f2fs_empty_dir() argument
[all...]

Completed in 230 milliseconds

12345678910>>...152