/linux-4.19.296/fs/btrfs/ |
D | dir-item.c | 25 int name_len) in insert_with_overflow() argument 36 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow() 58 const char *name, u16 name_len, in btrfs_insert_xattr_item() argument 69 if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_insert_xattr_item() 74 key.offset = btrfs_name_hash(name, name_len); in btrfs_insert_xattr_item() 76 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item() 78 name, name_len); in btrfs_insert_xattr_item() 87 btrfs_set_dir_name_len(leaf, dir_item, name_len); in btrfs_insert_xattr_item() 91 data_ptr = (unsigned long)((char *)name_ptr + name_len); in btrfs_insert_xattr_item() 93 write_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_insert_xattr_item() [all …]
|
D | inode-item.c | 13 int name_len, struct btrfs_inode_ref **ref_ret) in btrfs_find_name_in_backref() argument 29 if (len != name_len) in btrfs_find_name_in_backref() 31 if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) { in btrfs_find_name_in_backref() 42 const char *name, int name_len, in btrfs_find_name_in_ext_backref() argument 66 if (ref_name_len == name_len && in btrfs_find_name_in_ext_backref() 68 (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0)) { in btrfs_find_name_in_ext_backref() 84 const char *name, int name_len, in btrfs_lookup_inode_extref() argument 94 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); in btrfs_lookup_inode_extref() 102 ref_objectid, name, name_len, in btrfs_lookup_inode_extref() 110 const char *name, int name_len, in btrfs_del_inode_extref() argument [all …]
|
D | xattr.c | 87 size_t name_len = strlen(name); in do_setxattr() local 90 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in do_setxattr() 100 btrfs_ino(BTRFS_I(inode)), name, name_len, -1); in do_setxattr() 120 btrfs_ino(BTRFS_I(inode)), name, name_len, 0); in do_setxattr() 132 name, name_len, value, size); in do_setxattr() 141 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in do_setxattr() 148 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in do_setxattr() 171 const u32 data_size = sizeof(*di) + name_len + size; in do_setxattr() 184 if (old_data_len + name_len + sizeof(*di) == item_size) { in do_setxattr() 205 data_ptr = ((unsigned long)(di + 1)) + name_len; in do_setxattr() [all …]
|
D | props.c | 195 u32 name_len = btrfs_dir_name_len(leaf, di); in iterate_object_props() local 200 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props() 202 data_ptr = name_ptr + name_len; in iterate_object_props() 204 if (name_len <= XATTR_BTRFS_PREFIX_LEN || in iterate_object_props() 210 if (name_len >= name_buf_len) { in iterate_object_props() 212 name_buf_len = name_len + 1; in iterate_object_props() 219 read_extent_buffer(leaf, name_buf, name_ptr, name_len); in iterate_object_props() 220 name_buf[name_len] = '\0'; in iterate_object_props()
|
D | root-tree.c | 347 int name_len) in btrfs_del_root_ref() argument 375 (btrfs_root_ref_name_len(leaf, ref) != name_len) || in btrfs_del_root_ref() 376 memcmp_extent_buffer(leaf, name, ptr, name_len)) { in btrfs_del_root_ref() 420 int name_len) in btrfs_add_root_ref() argument 439 sizeof(*ref) + name_len); in btrfs_add_root_ref() 450 btrfs_set_root_ref_name_len(leaf, ref, name_len); in btrfs_add_root_ref() 452 write_extent_buffer(leaf, name, ptr, name_len); in btrfs_add_root_ref()
|
D | send.c | 269 int name_len; member 424 static int fs_path_prepare_for_add(struct fs_path *p, int name_len, in fs_path_prepare_for_add() argument 430 new_len = p->end - p->start + name_len; in fs_path_prepare_for_add() 440 p->start -= name_len; in fs_path_prepare_for_add() 446 p->end += name_len; in fs_path_prepare_for_add() 454 static int fs_path_add(struct fs_path *p, const char *name, int name_len) in fs_path_add() argument 459 ret = fs_path_prepare_for_add(p, name_len, &prepared); in fs_path_add() 462 memcpy(prepared, name, name_len); in fs_path_add() 889 u32 name_len; in iterate_inode_ref() local 927 name_len = btrfs_inode_ref_name_len(eb, iref); in iterate_inode_ref() [all …]
|
D | export.c | 236 int name_len; in btrfs_get_name() local 279 name_len = btrfs_root_ref_name_len(leaf, rref); in btrfs_get_name() 284 name_len = btrfs_inode_ref_name_len(leaf, iref); in btrfs_get_name() 287 read_extent_buffer(leaf, name, name_ptr, name_len); in btrfs_get_name() 294 name[name_len] = '\0'; in btrfs_get_name()
|
/linux-4.19.296/fs/cifs/ |
D | cifssmb.c | 835 int name_len; in CIFSPOSIXDelFile() local 848 name_len = in CIFSPOSIXDelFile() 851 name_len++; /* trailing null */ in CIFSPOSIXDelFile() 852 name_len *= 2; in CIFSPOSIXDelFile() 854 name_len = strnlen(fileName, PATH_MAX); in CIFSPOSIXDelFile() 855 name_len++; /* trailing null */ in CIFSPOSIXDelFile() 856 strncpy(pSMB->FileName, fileName, name_len); in CIFSPOSIXDelFile() 859 params = 6 + name_len; in CIFSPOSIXDelFile() 911 int name_len; in CIFSSMBDelFile() local 921 name_len = cifsConvertToUTF16((__le16 *) pSMB->fileName, name, in CIFSSMBDelFile() [all …]
|
/linux-4.19.296/fs/nilfs2/ |
D | dir.c | 142 if (rec_len < NILFS_DIR_REC_LEN(p->name_len)) in nilfs_check_page() 176 rec_len, p->name_len); in nilfs_check_page() 216 if (len != de->name_len) in nilfs_match() 303 if (!dir_emit(ctx, de->name, de->name_len, in nilfs_readdir() 445 unsigned short rec_len, name_len; in nilfs_add_link() local 474 name_len = 0; in nilfs_add_link() 489 name_len = NILFS_DIR_REC_LEN(de->name_len); in nilfs_add_link() 493 if (rec_len >= name_len + reclen) in nilfs_add_link() 512 de1 = (struct nilfs_dir_entry *)((char *)de + name_len); in nilfs_add_link() 513 de1->rec_len = nilfs_rec_len_to_disk(rec_len - name_len); in nilfs_add_link() [all …]
|
/linux-4.19.296/fs/ext2/ |
D | dir.c | 142 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) in ext2_check_page() 183 rec_len, p->name_len); in ext2_check_page() 226 if (len != de->name_len) in ext2_match() 341 if (!dir_emit(ctx, de->name, de->name_len, in ext2_readdir() 491 unsigned short rec_len, name_len; in ext2_add_link() local 520 name_len = 0; in ext2_add_link() 535 name_len = EXT2_DIR_REC_LEN(de->name_len); in ext2_add_link() 539 if (rec_len >= name_len + reclen) in ext2_add_link() 556 ext2_dirent *de1 = (ext2_dirent *) ((char *) de + name_len); in ext2_add_link() 557 de1->rec_len = ext2_rec_len_to_disk(rec_len - name_len); in ext2_add_link() [all …]
|
D | xattr.c | 154 size_t name_len, size; in ext2_xattr_get() local 164 name_len = strlen(name); in ext2_xattr_get() 165 if (name_len > 255) in ext2_xattr_get() 197 name_len == entry->e_name_len && in ext2_xattr_get() 198 memcmp(name, entry->e_name, name_len) == 0) in ext2_xattr_get() 371 size_t name_len, free, min_offs = sb->s_blocksize; in ext2_xattr_set() local 394 name_len = strlen(name); in ext2_xattr_set() 395 if (name_len > 255 || value_len > sb->s_blocksize) in ext2_xattr_set() 430 not_found = name_len - here->e_name_len; in ext2_xattr_set() 432 not_found = memcmp(name, here->e_name,name_len); in ext2_xattr_set() [all …]
|
/linux-4.19.296/fs/exofs/ |
D | dir.c | 109 if (rec_len < EXOFS_DIR_REC_LEN(p->name_len)) in exofs_check_page() 144 rec_len, p->name_len); in exofs_check_page() 180 if (len != de->name_len) in exofs_match() 290 if (!dir_emit(ctx, de->name, de->name_len, in exofs_readdir() 431 unsigned short rec_len, name_len; in exofs_add_link() local 455 name_len = 0; in exofs_add_link() 471 name_len = EXOFS_DIR_REC_LEN(de->name_len); in exofs_add_link() 475 if (rec_len >= name_len + reclen) in exofs_add_link() 496 (struct exofs_dir_entry *)((char *)de + name_len); in exofs_add_link() 497 de1->rec_len = cpu_to_le16(rec_len - name_len); in exofs_add_link() [all …]
|
D | common.h | 202 u8 name_len; /* name length */ member 221 #define EXOFS_DIR_REC_LEN(name_len) \ argument 222 (((name_len) + offsetof(struct exofs_dir_entry, name) + \
|
/linux-4.19.296/fs/ceph/ |
D | xattr.c | 421 const char *name, int name_len, in __set_xattr() argument 436 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr() 442 if (name_len == xattr->name_len) in __set_xattr() 444 else if (name_len < xattr->name_len) in __set_xattr() 478 xattr->name_len = name_len; in __set_xattr() 493 ci->i_xattrs.names_size -= xattr->name_len; in __set_xattr() 496 ci->i_xattrs.names_size += name_len; in __set_xattr() 525 int name_len = strlen(name); in __get_xattr() local 532 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr() 533 if (c == 0 && name_len > xattr->name_len) in __get_xattr() [all …]
|
/linux-4.19.296/fs/isofs/ |
D | dir.c | 20 int len = de->name_len[0]; in isofs_name_translate() 59 std = sizeof(struct iso_directory_record) + de->name_len[0]; in get_acorn_filename() 150 if (de_len < de->name_len[0] + in do_isofs_readdir() 175 if (de->name_len[0] == 1 && de->name[0] == 0) { in do_isofs_readdir() 185 if (de->name_len[0] == 1 && de->name[0] == 1) { in do_isofs_readdir() 230 len = de->name_len[0]; in do_isofs_readdir()
|
D | joliet.c | 51 de->name_len[0] >> 1, UTF16_BIG_ENDIAN, in get_joliet_filename() 55 de->name_len[0] >> 1, nls); in get_joliet_filename()
|
/linux-4.19.296/fs/afs/ |
D | volume.c | 45 volume->name_len = vldb->name_len; in afs_alloc_volume() 51 memcpy(volume->name, vldb->name, vldb->name_len + 1); in afs_alloc_volume() 283 if (vldb->name_len != volume->name_len || in afs_update_volume_status() 284 memcmp(vldb->name, volume->name, vldb->name_len) != 0) { in afs_update_volume_status() 287 volume->name_len = vldb->name_len; in afs_update_volume_status()
|
/linux-4.19.296/fs/notify/inotify/ |
D | inotify_fsnotify.c | 52 (old->name_len == new->name_len) && in event_compare() 53 (!old->name_len || !strcmp(old->name, new->name))) in event_compare() 124 event->name_len = len; in inotify_handle_event()
|
D | inotify_user.c | 130 if (!event->name_len) in round_event_name_len() 132 return roundup(event->name_len + 1, sizeof(struct inotify_event)); in round_event_name_len() 179 size_t name_len; in copy_event_to_user() local 185 name_len = event->name_len; in copy_event_to_user() 209 if (copy_to_user(buf, event->name, name_len)) in copy_event_to_user() 211 buf += name_len; in copy_event_to_user() 214 if (clear_user(buf, pad_name_len - name_len)) in copy_event_to_user() 643 oevent->name_len = 0; in inotify_new_group()
|
/linux-4.19.296/fs/jffs2/ |
D | xattr.c | 66 int name_len = strlen(xname); in xattr_datum_hashkey() local 68 return crc32(xprefix, xname, name_len) ^ crc32(xprefix, xvalue, xsize); in xattr_datum_hashkey() 92 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); in unload_xattr_datum() 161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum() 178 xd->name_len = rx.name_len; in do_verify_xattr_datum() 215 length = xd->name_len + 1 + xd->value_len; in do_load_xattr_datum() 230 data[xd->name_len] = '\0'; in do_load_xattr_datum() 243 xd->xvalue = data + xd->name_len+1; in do_load_xattr_datum() 299 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; in save_xattr_datum() 312 rx.name_len = xd->name_len; in save_xattr_datum() [all …]
|
/linux-4.19.296/fs/adfs/ |
D | dir.c | 53 if (!dir_emit(ctx, obj.name, obj.name_len, in adfs_readdir() 108 if (name->len != obj->name_len) in adfs_match() 182 const unsigned int name_len = ADFS_SB(parent->d_sb)->s_namelen; in adfs_hash() local 187 if (qstr->len < name_len) in adfs_hash() 194 qstr->len = i = name_len; in adfs_hash()
|
D | dir_fplus.c | 188 obj->name_len = le32_to_cpu(bde.bigdirobnamelen); in adfs_fplus_getnext() 195 dir_memcpy(dir, offset, obj->name, obj->name_len); in adfs_fplus_getnext() 196 for (i = 0; i < obj->name_len; i++) in adfs_fplus_getnext() 212 obj->name_len += in adfs_fplus_getnext() 214 &obj->name[obj->name_len], in adfs_fplus_getnext()
|
/linux-4.19.296/fs/ntfs/ |
D | inode.h | 68 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);
|
D | inode.c | 76 if (ni->name_len != na->name_len) in ntfs_test_inode() 78 if (na->name_len && memcmp(ni->name, na->name, in ntfs_test_inode() 79 na->name_len * sizeof(ntfschar))) in ntfs_test_inode() 115 ni->name_len = na->name_len; in ntfs_init_locked_inode() 120 BUG_ON(na->name_len); in ntfs_init_locked_inode() 134 if (na->name_len && na->name != I30) { in ntfs_init_locked_inode() 138 i = na->name_len * sizeof(ntfschar); in ntfs_init_locked_inode() 143 ni->name[na->name_len] = 0; in ntfs_init_locked_inode() 179 na.name_len = 0; in ntfs_iget() 228 ntfschar *name, u32 name_len) in ntfs_attr_iget() argument [all …]
|
/linux-4.19.296/fs/fat/ |
D | dir.c | 364 int name_len = 0, uni_len = 0; in fat_parse_short() local 389 name_len = i; in fat_parse_short() 401 name_len = i; in fat_parse_short() 405 i = name_len; in fat_parse_short() 426 name_len = i; in fat_parse_short() 442 name_len = i; in fat_parse_short() 446 if (name_len > 0) { in fat_parse_short() 447 name_len += dotoffset; in fat_parse_short() 451 name_len = fat_uni_to_x8(sb, uni_name, name, in fat_parse_short() 456 return name_len; in fat_parse_short() [all …]
|