Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 25 of 81) sorted by relevance

1234

/fs/btrfs/
Ddir-item.c39 int name_len) in insert_with_overflow() argument
49 di = btrfs_match_dir_item_name(root, path, name, name_len); in insert_with_overflow()
72 u16 name_len, const void *data, u16 data_len, in btrfs_insert_xattr_item() argument
86 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item()
90 if (name_len + data_len + sizeof(struct btrfs_dir_item) > in btrfs_insert_xattr_item()
94 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
96 name, name_len); in btrfs_insert_xattr_item()
110 btrfs_set_dir_name_len(leaf, dir_item, name_len); in btrfs_insert_xattr_item()
114 data_ptr = (unsigned long)((char *)name_ptr + name_len); in btrfs_insert_xattr_item()
116 write_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_insert_xattr_item()
[all …]
Dinode-item.c24 int name_len, struct btrfs_inode_ref **ref_ret) in find_name_in_backref() argument
42 if (len != name_len) in find_name_in_backref()
44 if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) { in find_name_in_backref()
54 const char *name, int name_len, in btrfs_del_inode_ref() argument
66 int del_len = name_len + sizeof(*ref); in btrfs_del_inode_ref()
83 if (!find_name_in_backref(path, name, name_len, &ref)) { in btrfs_del_inode_ref()
98 sub_item_len = name_len + sizeof(*ref); in btrfs_del_inode_ref()
112 const char *name, int name_len, in btrfs_insert_inode_ref() argument
120 int ins_len = name_len + sizeof(*ref); in btrfs_insert_inode_ref()
135 if (find_name_in_backref(path, name, name_len, &ref)) in btrfs_insert_inode_ref()
[all …]
Dxattr.c170 size_t name_len; in btrfs_listxattr() local
231 name_len = btrfs_dir_name_len(leaf, di); in btrfs_listxattr()
232 total_size += name_len + 1; in btrfs_listxattr()
238 if (!buffer || (name_len + 1) > size_left) { in btrfs_listxattr()
244 read_extent_buffer(leaf, buffer, name_ptr, name_len); in btrfs_listxattr()
245 buffer[name_len] = '\0'; in btrfs_listxattr()
247 size_left -= name_len + 1; in btrfs_listxattr()
248 buffer += name_len + 1; in btrfs_listxattr()
Dtree-log.c588 int name_len; in drop_one_dir_item() local
596 name_len = btrfs_dir_name_len(leaf, di); in drop_one_dir_item()
597 name = kmalloc(name_len, GFP_NOFS); in drop_one_dir_item()
598 read_extent_buffer(leaf, name, (unsigned long)(di + 1), name_len); in drop_one_dir_item()
606 ret = btrfs_unlink_inode(trans, root, dir, inode, name, name_len); in drop_one_dir_item()
622 const char *name, int name_len) in inode_in_dir() argument
629 index, name, name_len, 0); in inode_in_dir()
638 di = btrfs_lookup_dir_item(NULL, root, path, dirid, name, name_len, 0); in inode_in_dir()
885 int name_len; in fixup_inode_link_count() local
914 name_len = btrfs_inode_ref_name_len(path->nodes[0], in fixup_inode_link_count()
[all …]
Dtree-log.h35 const char *name, int name_len,
39 const char *name, int name_len,
/fs/cifs/
Dcifssmb.c831 int name_len; in CIFSPOSIXDelFile() local
844 name_len = in CIFSPOSIXDelFile()
847 name_len++; /* trailing null */ in CIFSPOSIXDelFile()
848 name_len *= 2; in CIFSPOSIXDelFile()
850 name_len = strnlen(fileName, PATH_MAX); in CIFSPOSIXDelFile()
851 name_len++; /* trailing null */ in CIFSPOSIXDelFile()
852 strncpy(pSMB->FileName, fileName, name_len); in CIFSPOSIXDelFile()
855 params = 6 + name_len; in CIFSPOSIXDelFile()
907 int name_len; in CIFSSMBDelFile() local
916 name_len = in CIFSSMBDelFile()
[all …]
/fs/ext2/
Ddir.c136 if (rec_len < EXT2_DIR_REC_LEN(p->name_len)) in ext2_check_page()
177 rec_len, p->name_len); in ext2_check_page()
220 if (len != de->name_len) in ext2_match()
337 over = filldir(dirent, de->name, de->name_len, in ext2_readdir()
483 unsigned short rec_len, name_len; in ext2_add_link() local
512 name_len = 0; in ext2_add_link()
527 name_len = EXT2_DIR_REC_LEN(de->name_len); in ext2_add_link()
531 if (rec_len >= name_len + reclen) in ext2_add_link()
549 ext2_dirent *de1 = (ext2_dirent *) ((char *) de + name_len); in ext2_add_link()
550 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len); in ext2_add_link()
[all …]
Dxattr_trusted.c17 const char *name, size_t name_len) in ext2_xattr_trusted_list() argument
20 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_trusted_list()
27 memcpy(list+prefix_len, name, name_len); in ext2_xattr_trusted_list()
28 list[prefix_len + name_len] = '\0'; in ext2_xattr_trusted_list()
Dxattr_user.c16 const char *name, size_t name_len) in ext2_xattr_user_list() argument
19 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_user_list()
26 memcpy(list+prefix_len, name, name_len); in ext2_xattr_user_list()
27 list[prefix_len + name_len] = '\0'; in ext2_xattr_user_list()
Dxattr_security.c15 const char *name, size_t name_len) in ext2_xattr_security_list() argument
18 const size_t total_len = prefix_len + name_len + 1; in ext2_xattr_security_list()
22 memcpy(list+prefix_len, name, name_len); in ext2_xattr_security_list()
23 list[prefix_len + name_len] = '\0'; in ext2_xattr_security_list()
Dxattr.c154 size_t name_len, size; in ext2_xattr_get() local
184 name_len = strlen(name); in ext2_xattr_get()
187 if (name_len > 255) in ext2_xattr_get()
196 name_len == entry->e_name_len && in ext2_xattr_get()
197 memcmp(name, entry->e_name, name_len) == 0) in ext2_xattr_get()
370 size_t name_len, free, min_offs = sb->s_blocksize; in ext2_xattr_set() local
393 name_len = strlen(name); in ext2_xattr_set()
394 if (name_len > 255 || value_len > sb->s_blocksize) in ext2_xattr_set()
429 not_found = name_len - here->e_name_len; in ext2_xattr_set()
431 not_found = memcmp(name, here->e_name,name_len); in ext2_xattr_set()
[all …]
/fs/ext3/
Dxattr_trusted.c18 const char *name, size_t name_len) in ext3_xattr_trusted_list() argument
21 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_trusted_list()
28 memcpy(list+prefix_len, name, name_len); in ext3_xattr_trusted_list()
29 list[prefix_len + name_len] = '\0'; in ext3_xattr_trusted_list()
Dxattr_user.c17 const char *name, size_t name_len) in ext3_xattr_user_list() argument
20 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_user_list()
27 memcpy(list+prefix_len, name, name_len); in ext3_xattr_user_list()
28 list[prefix_len + name_len] = '\0'; in ext3_xattr_user_list()
Dxattr_security.c16 const char *name, size_t name_len) in ext3_xattr_security_list() argument
19 const size_t total_len = prefix_len + name_len + 1; in ext3_xattr_security_list()
24 memcpy(list+prefix_len, name, name_len); in ext3_xattr_security_list()
25 list[prefix_len + name_len] = '\0'; in ext3_xattr_security_list()
Ddir.c76 else if (rlen < EXT3_DIR_REC_LEN(de->name_len)) in ext3_check_dir_entry()
90 rlen, de->name_len); in ext3_check_dir_entry()
216 de->name_len, in ext3_readdir()
262 __u8 name_len; member
345 len = sizeof(struct fname) + dirent->name_len + 1; in ext3_htree_store_dirent()
352 new_fn->name_len = dirent->name_len; in ext3_htree_store_dirent()
354 memcpy(new_fn->name, dirent->name, dirent->name_len); in ext3_htree_store_dirent()
355 new_fn->name[dirent->name_len] = 0; in ext3_htree_store_dirent()
412 fname->name_len, curr_pos, in call_filldir()
/fs/ext4/
Dxattr_trusted.c18 const char *name, size_t name_len) in ext4_xattr_trusted_list() argument
21 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_trusted_list()
28 memcpy(list+prefix_len, name, name_len); in ext4_xattr_trusted_list()
29 list[prefix_len + name_len] = '\0'; in ext4_xattr_trusted_list()
Dxattr_user.c17 const char *name, size_t name_len) in ext4_xattr_user_list() argument
20 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_user_list()
27 memcpy(list+prefix_len, name, name_len); in ext4_xattr_user_list()
28 list[prefix_len + name_len] = '\0'; in ext4_xattr_user_list()
Dxattr_security.c16 const char *name, size_t name_len) in ext4_xattr_security_list() argument
19 const size_t total_len = prefix_len + name_len + 1; in ext4_xattr_security_list()
24 memcpy(list+prefix_len, name, name_len); in ext4_xattr_security_list()
25 list[prefix_len + name_len] = '\0'; in ext4_xattr_security_list()
Ddir.c76 else if (rlen < EXT4_DIR_REC_LEN(de->name_len)) in ext4_check_dir_entry()
90 rlen, de->name_len); in ext4_check_dir_entry()
218 de->name_len, in ext4_readdir()
264 __u8 name_len; member
347 len = sizeof(struct fname) + dirent->name_len + 1; in ext4_htree_store_dirent()
354 new_fn->name_len = dirent->name_len; in ext4_htree_store_dirent()
356 memcpy(new_fn->name, dirent->name, dirent->name_len); in ext4_htree_store_dirent()
357 new_fn->name[dirent->name_len] = 0; in ext4_htree_store_dirent()
415 fname->name_len, curr_pos, in call_filldir()
/fs/isofs/
Ddir.c19 int len = de->name_len[0]; in isofs_name_translate()
58 std = sizeof(struct iso_directory_record) + de->name_len[0]; in get_acorn_filename()
149 if (de_len < de->name_len[0] + in do_isofs_readdir()
173 if (de->name_len[0] == 1 && de->name[0] == 0) { in do_isofs_readdir()
183 if (de->name_len[0] == 1 && de->name[0] == 1) { in do_isofs_readdir()
230 len = de->name_len[0]; in do_isofs_readdir()
/fs/adfs/
Ddir.c68 if (filldir(dirent, obj.name, obj.name_len, in adfs_readdir()
120 if (name->len != obj->name_len) in adfs_match()
170 obj->name_len = 0; in adfs_dir_lookup_byname()
208 const unsigned int name_len = ADFS_SB(parent->d_sb)->s_namelen; in adfs_hash() local
213 if (qstr->len < name_len) in adfs_hash()
220 qstr->len = i = name_len; in adfs_hash()
/fs/ocfs2/
Dxattr.c424 int name_len) in ocfs2_xattr_name_hash() argument
431 for (i = 0; i < name_len; i++) { in ocfs2_xattr_name_hash()
458 static int ocfs2_xattr_entry_real_size(int name_len, size_t value_len) in ocfs2_xattr_entry_real_size() argument
463 size = OCFS2_XATTR_SIZE(name_len) + OCFS2_XATTR_SIZE(value_len); in ocfs2_xattr_entry_real_size()
465 size = OCFS2_XATTR_SIZE(name_len) + OCFS2_XATTR_ROOT_SIZE; in ocfs2_xattr_entry_real_size()
767 const char *name, int name_len) in ocfs2_xattr_list_entry() argument
771 int total_len = prefix_len + name_len + 1; in ocfs2_xattr_list_entry()
783 memcpy(p + prefix_len, name, name_len); in ocfs2_xattr_list_entry()
784 p[prefix_len + name_len] = '\0'; in ocfs2_xattr_list_entry()
923 size_t name_len; in ocfs2_xattr_find_entry() local
[all …]
/fs/jffs2/
Dxattr.c61 int name_len = strlen(xname); in xattr_datum_hashkey() local
63 return crc32(xprefix, xname, name_len) ^ crc32(xprefix, xvalue, xsize); in xattr_datum_hashkey()
87 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); in unload_xattr_datum()
156 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum()
173 xd->name_len = rx.name_len; in do_verify_xattr_datum()
210 length = xd->name_len + 1 + xd->value_len; in do_load_xattr_datum()
225 data[xd->name_len] = '\0'; in do_load_xattr_datum()
238 xd->xvalue = data + xd->name_len+1; in do_load_xattr_datum()
294 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; in save_xattr_datum()
307 rx.name_len = xd->name_len; in save_xattr_datum()
[all …]
/fs/ntfs/
Dinode.h68 u32 name_len; /* Attribute name length of this fake inode. */ member
266 u32 name_len; member
276 ntfschar *name, u32 name_len);
278 u32 name_len);
Dinode.c75 if (ni->name_len != na->name_len) in ntfs_test_inode()
77 if (na->name_len && memcmp(ni->name, na->name, in ntfs_test_inode()
78 na->name_len * sizeof(ntfschar))) in ntfs_test_inode()
114 ni->name_len = na->name_len; in ntfs_init_locked_inode()
119 BUG_ON(na->name_len); in ntfs_init_locked_inode()
133 if (na->name_len && na->name != I30) { in ntfs_init_locked_inode()
137 i = na->name_len * sizeof(ntfschar); in ntfs_init_locked_inode()
142 ni->name[na->name_len] = 0; in ntfs_init_locked_inode()
178 na.name_len = 0; in ntfs_iget()
227 ntfschar *name, u32 name_len) in ntfs_attr_iget() argument
[all …]

1234