Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 29) sorted by relevance

12

/fs/ubifs/
Drecovery.c75 const int sz = c->mst_node_alsz; in get_master_node() local
96 offs += sz; in get_master_node()
97 buf += sz; in get_master_node()
98 len -= sz; in get_master_node()
104 offs -= sz; in get_master_node()
105 buf -= sz; in get_master_node()
106 len += sz; in get_master_node()
110 offs -= sz; in get_master_node()
111 buf -= sz; in get_master_node()
112 len += sz; in get_master_node()
[all …]
Dlpt.c60 long long sz, tot_wastage; in do_calc_lpt_geom() local
117 sz = c->lpt_sz; in do_calc_lpt_geom()
119 sz += per_leb_wastage; in do_calc_lpt_geom()
121 while (sz > c->leb_size) { in do_calc_lpt_geom()
122 sz += per_leb_wastage; in do_calc_lpt_geom()
123 sz -= c->leb_size; in do_calc_lpt_geom()
126 tot_wastage += ALIGN(sz, c->min_io_size) - sz; in do_calc_lpt_geom()
139 long long sz; in ubifs_calc_lpt_geom() local
144 sz = c->lpt_sz * 2; /* Must have at least 2 times the size */ in ubifs_calc_lpt_geom()
145 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in ubifs_calc_lpt_geom()
[all …]
Dlog.c659 int sz = ALIGN(*offs, c->min_io_size), err; in add_node() local
661 ubifs_pad(c, buf + *offs, sz - *offs); in add_node()
662 err = ubifs_leb_change(c, *lnum, buf, sz, UBI_SHORTTERM); in add_node()
738 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log() local
740 ubifs_pad(c, buf + offs, sz - offs); in ubifs_consolidate_log()
741 err = ubifs_leb_change(c, write_lnum, buf, sz, UBI_SHORTTERM); in ubifs_consolidate_log()
Dcommit.c518 size_t sz; in dbg_check_old_index() local
525 sz = sizeof(struct idx_node) + ubifs_idx_node_sz(c, c->fanout) - in dbg_check_old_index()
542 i = kmalloc(sz, GFP_NOFS); in dbg_check_old_index()
Djournal.c1127 int err, dlen, len, lnum, offs, bit, sz, sync = IS_SYNC(inode); in ubifs_jnl_truncate() local
1138 sz = UBIFS_TRUN_NODE_SZ + UBIFS_INO_NODE_SZ + in ubifs_jnl_truncate()
1140 ino = kmalloc(sz, GFP_NOFS); in ubifs_jnl_truncate()
1203 sz = offs + UBIFS_INO_NODE_SZ + UBIFS_TRUN_NODE_SZ; in ubifs_jnl_truncate()
1204 err = ubifs_tnc_add(c, &key, lnum, sz, dlen); in ubifs_jnl_truncate()
Dsuper.c1111 size_t sz; in mount_ubifs() local
1189 sz = ALIGN(c->max_idx_node_sz, c->min_io_size); in mount_ubifs()
1190 sz = ALIGN(sz + c->max_idx_node_sz, c->min_io_size); in mount_ubifs()
1191 c->cbuf = kmalloc(sz, GFP_NOFS); in mount_ubifs()
/fs/
Dbinfmt_elf_fdpic.c1280 int sz; in notesize() local
1282 sz = sizeof(struct elf_note); in notesize()
1283 sz += roundup(strlen(en->name) + 1, 4); in notesize()
1284 sz += roundup(en->datasz, 4); in notesize()
1286 return sz; in notesize()
1348 static inline void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1354 phdr->p_filesz = sz; in fill_elf_note_phdr()
1362 unsigned int sz, void *data) in fill_note() argument
1366 note->datasz = sz; in fill_note()
1469 int sz = 0; in elf_dump_thread_status() local
[all …]
Dbinfmt_elf.c1259 int sz; in notesize() local
1261 sz = sizeof(struct elf_note); in notesize()
1262 sz += roundup(strlen(en->name) + 1, 4); in notesize()
1263 sz += roundup(en->datasz, 4); in notesize()
1265 return sz; in notesize()
1328 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1334 phdr->p_filesz = sz; in fill_elf_note_phdr()
1342 unsigned int sz, void *data) in fill_note() argument
1346 note->datasz = sz; in fill_note()
1687 int sz = 0; in elf_dump_thread_status() local
[all …]
Ddcache.c2027 int sz; in dynamic_dname() local
2030 sz = vsnprintf(temp, sizeof(temp), fmt, args) + 1; in dynamic_dname()
2033 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
2036 buffer += buflen - sz; in dynamic_dname()
2037 return memcpy(buffer, temp, sz); in dynamic_dname()
Dopen.c141 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
146 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3()
177 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
183 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3()
Dbio.c74 unsigned int sz = sizeof(struct bio) + extra_size; in bio_find_or_create_slab() local
87 else if (bslab->slab_size == sz) { in bio_find_or_create_slab()
112 slab = kmem_cache_create(bslab->name, sz, 0, SLAB_HWCACHE_ALIGN, NULL); in bio_find_or_create_slab()
119 bslab->slab_size = sz; in bio_find_or_create_slab()
Dblock_dev.c52 loff_t sz = i_size_read(bdev->bd_inode); in max_block() local
54 if (sz) { in max_block()
57 retval = (sz >> sizebits); in max_block()
/fs/proc/
Dvmcore.c228 u64 offset, max_sz, sz, real_sz = 0; in merge_note_headers_elf64() local
243 for (j = 0; j < max_sz; j += sz) { in merge_note_headers_elf64()
246 sz = sizeof(Elf64_Nhdr) + in merge_note_headers_elf64()
249 real_sz += sz; in merge_note_headers_elf64()
250 nhdr_ptr = (Elf64_Nhdr*)((char*)nhdr_ptr + sz); in merge_note_headers_elf64()
309 u64 offset, max_sz, sz, real_sz = 0; in merge_note_headers_elf32() local
324 for (j = 0; j < max_sz; j += sz) { in merge_note_headers_elf32()
327 sz = sizeof(Elf32_Nhdr) + in merge_note_headers_elf32()
330 real_sz += sz; in merge_note_headers_elf32()
331 nhdr_ptr = (Elf32_Nhdr*)((char*)nhdr_ptr + sz); in merge_note_headers_elf32()
Dkcore.c107 int sz; in notesize() local
109 sz = sizeof(struct elf_note); in notesize()
110 sz += roundup((strlen(en->name) + 1), 4); in notesize()
111 sz += roundup(en->datasz, 4); in notesize()
113 return sz; in notesize()
/fs/romfs/
Dinode.c122 int sz, ret = -EINVAL; in romfs_fill_super() local
137 sz = be32_to_cpu(rsb->size); in romfs_fill_super()
139 || sz < ROMFH_SIZE) { in romfs_fill_super()
145 if (romfs_checksum(rsb, min_t(int, sz, 512))) { in romfs_fill_super()
152 s->s_fs_info = (void *)(long)sz; in romfs_fill_super()
157 sz = (ROMFH_SIZE + in romfs_fill_super()
162 root = romfs_iget(s, sz); in romfs_fill_super()
/fs/fat/
Dnamei_vfat.c316 int sz = 0, extlen, baselen, i, numtail_baselen, numtail2_baselen; in vfat_create_shortname() local
329 sz = ulen; in vfat_create_shortname()
337 sz = ulen; in vfat_create_shortname()
352 sz = ext_start - uname; in vfat_create_shortname()
355 sz = ulen; in vfat_create_shortname()
362 for (baselen = i = 0, p = base, ip = uname; i < sz; i++, ip++) { in vfat_create_shortname()
379 if ((chi < chl - 1) || (ip + 1) - uname < sz) in vfat_create_shortname()
472 sz = (jiffies >> 16) & 0x7; in vfat_create_shortname()
478 name_res[baselen + 5] = '1' + sz; in vfat_create_shortname()
/fs/xfs/
Dxfs_acl.h84 #define xfs_acl_vset(v,p,sz,t) (-EOPNOTSUPP) argument
85 #define xfs_acl_vget(v,p,sz,t) (-EOPNOTSUPP) argument
Dxfs_bmap_btree.h194 #define XFS_BMAP_BROOT_PTR_ADDR(mp, bb, i, sz) \ argument
195 XFS_BMBT_PTR_ADDR(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, 0))
/fs/jffs2/
Ddebug.c262 #define check(sz) \ in __jffs2_dbg_superblock_counts() argument
263 if (sz != c->sz##_size) { \ in __jffs2_dbg_superblock_counts()
264 printk(KERN_WARNING #sz "_size mismatch counted 0x%x, c->" #sz "_size 0x%x\n", \ in __jffs2_dbg_superblock_counts()
265 sz, c->sz##_size); \ in __jffs2_dbg_superblock_counts()
/fs/adfs/
Ddir_fplus.c23 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument
46 if (size != sz) { in adfs_fplus_read()
Ddir_f.c344 adfs_f_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_f_read() argument
348 if (sz != ADFS_NEWDIR_SIZE) in adfs_f_read()
351 ret = adfs_dir_read(sb, id, sz, dir); in adfs_f_read()
Dadfs.h50 int (*read)(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir);
/fs/ecryptfs/
Dmiscdev.c414 ssize_t sz = 0; in ecryptfs_miscdev_write() local
433 sz = count; in ecryptfs_miscdev_write()
485 return sz; in ecryptfs_miscdev_write()
/fs/affs/
Daffs.h17 #define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) argument
/fs/ocfs2/dlm/
Ddlmdomain.c69 unsigned int sz) in byte_copymap() argument
73 if (!sz) in byte_copymap()
76 memset(dmap, 0, ((sz + 7) >> 3)); in byte_copymap()
77 for (nn = 0 ; nn < sz; nn++) in byte_copymap()

12