Searched refs:nsize (Results 1 – 11 of 11) sorted by relevance
/fs/jffs2/ |
D | summary.c | 79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem() 137 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + rd->nsize, GFP_KERNEL); in jffs2_sum_add_dirent_mem() 148 temp->nsize = rd->nsize; in jffs2_sum_add_dirent_mem() 152 memcpy(temp->name, rd->name, rd->nsize); in jffs2_sum_add_dirent_mem() 283 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL); in jffs2_sum_add_kvec() 294 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec() 300 memcpy(temp->name,node->d.name,node->d.nsize); in jffs2_sum_add_kvec() 304 memcpy(temp->name,invecs[1].iov_base,node->d.nsize); in jffs2_sum_add_kvec() 445 checkedlen = strnlen(spd->name, spd->nsize); in jffs2_sum_process_sum_data() 452 if (checkedlen < spd->nsize) { in jffs2_sum_process_sum_data() [all …]
|
D | gc.c | 671 if (strnlen(node->d.name, node->d.nsize) != node->d.nsize) { in jffs2_garbage_collect_pristine() 677 if (node->d.nsize) { in jffs2_garbage_collect_pristine() 678 crc = crc32(0, node->d.name, node->d.nsize); in jffs2_garbage_collect_pristine() 860 rd.nsize = strlen(fd->name); in jffs2_garbage_collect_dirent() 861 rd.totlen = cpu_to_je32(sizeof(rd) + rd.nsize); in jffs2_garbage_collect_dirent() 875 rd.name_crc = cpu_to_je32(crc32(0, fd->name, rd.nsize)); in jffs2_garbage_collect_dirent() 877 ret = jffs2_reserve_space_gc(c, sizeof(rd)+rd.nsize, &alloclen, in jffs2_garbage_collect_dirent() 878 JFFS2_SUMMARY_DIRENT_SIZE(rd.nsize)); in jffs2_garbage_collect_dirent() 881 sizeof(rd)+rd.nsize, ret); in jffs2_garbage_collect_dirent() 884 new_fd = jffs2_write_dirent(c, f, &rd, fd->name, rd.nsize, ALLOC_GC); in jffs2_garbage_collect_dirent() [all …]
|
D | readinode.c | 610 if (unlikely(PAD((rd->nsize + sizeof(*rd))) != PAD(je32_to_cpu(rd->totlen)))) { in read_direntry() 612 ref_offset(ref), rd->nsize, je32_to_cpu(rd->totlen)); in read_direntry() 629 fd = jffs2_alloc_full_dirent(rd->nsize + 1); in read_direntry() 653 min_t(uint32_t, rd->nsize, (read - sizeof(*rd)) )); in read_direntry() 656 if (rd->nsize + sizeof(*rd) > read) { in read_direntry() 662 rd->nsize - already, &read, &fd->name[already]); in read_direntry() 663 if (unlikely(read != rd->nsize - already) && likely(!err)) { in read_direntry() 666 rd->nsize - already, read); in read_direntry() 677 fd->nhash = full_name_hash(NULL, fd->name, rd->nsize); in read_direntry() 679 fd->name[rd->nsize] = '\0'; in read_direntry()
|
D | summary.h | 62 uint8_t nsize; /* dirent name size */ member 118 uint8_t nsize; /* dirent name size */ member
|
D | write.c | 519 rd->nsize = qstr->len; in jffs2_do_create() 582 rd->nsize = namelen; in jffs2_do_unlink() 699 rd->nsize = namelen; in jffs2_do_link()
|
D | dir.c | 405 rd->nsize = namelen; in jffs2_symlink() 549 rd->nsize = namelen; in jffs2_mkdir() 719 rd->nsize = namelen; in jffs2_mknod()
|
D | scan.c | 1066 checkedlen = strnlen(rd->name, rd->nsize); in jffs2_scan_dirent_node() 1067 if (checkedlen < rd->nsize) { in jffs2_scan_dirent_node() 1078 crc = crc32(0, fd->name, rd->nsize); in jffs2_scan_dirent_node()
|
D | debug.c | 846 printk(JFFS2_DBG "nsize:\t%#02x\n", node.d.nsize); in __jffs2_dbg_dump_node() 851 node.d.name[node.d.nsize] = '\0'; in __jffs2_dbg_dump_node()
|
/fs/nfs/ |
D | fscache-index.c | 172 uint16_t nsize; in nfs_fscache_inode_get_key() local 175 nsize = nfsi->fh.size; in nfs_fscache_inode_get_key() 176 memcpy(buffer, nfsi->fh.data, nsize); in nfs_fscache_inode_get_key() 177 return nsize; in nfs_fscache_inode_get_key()
|
/fs/gfs2/ |
D | xattr.c | 41 static int ea_calc_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize, in ea_calc_size() argument 47 *size = ALIGN(sizeof(struct gfs2_ea_header) + nsize + dsize, 8); in ea_calc_size() 53 *size = ALIGN(sizeof(struct gfs2_ea_header) + nsize + in ea_calc_size() 59 static int ea_check_size(struct gfs2_sbd *sdp, unsigned int nsize, size_t dsize) in ea_check_size() argument 66 ea_calc_size(sdp, nsize, dsize, &size); in ea_check_size()
|
/fs/ceph/ |
D | inode.c | 1434 unsigned nsize = PAGE_SIZE / sizeof(struct dentry*); in fill_readdir_cache() local 1435 unsigned idx = ctl->index % nsize; in fill_readdir_cache() 1436 pgoff_t pgoff = ctl->index / nsize; in fill_readdir_cache()
|