Home
last modified time | relevance | path

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

12

/fs/ext4/
Dbitmap.c21 struct buffer_head *bh, int sz) in ext4_inode_bitmap_csum_verify() argument
31 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_verify()
43 struct buffer_head *bh, int sz) in ext4_inode_bitmap_csum_set() argument
51 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_inode_bitmap_csum_set()
64 int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8; in ext4_block_bitmap_csum_verify() local
70 calculated = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_verify()
87 int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8; in ext4_block_bitmap_csum_set() local
94 csum = ext4_chksum(sbi, sbi->s_csum_seed, (__u8 *)bh->b_data, sz); in ext4_block_bitmap_csum_set()
/fs/ubifs/
Drecovery.c100 const int sz = c->mst_node_alsz; in get_master_node() local
121 offs += sz; in get_master_node()
122 buf += sz; in get_master_node()
123 len -= sz; in get_master_node()
129 offs -= sz; in get_master_node()
130 buf -= sz; in get_master_node()
131 len += sz; in get_master_node()
135 offs -= sz; in get_master_node()
136 buf -= sz; in get_master_node()
137 len += sz; in get_master_node()
[all …]
Dlog.c618 int sz = ALIGN(*offs, c->min_io_size), err; in add_node() local
620 ubifs_pad(c, buf + *offs, sz - *offs); in add_node()
621 err = ubifs_leb_change(c, *lnum, buf, sz); in add_node()
697 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log() local
699 ubifs_pad(c, buf + offs, sz - offs); in ubifs_consolidate_log()
700 err = ubifs_leb_change(c, write_lnum, buf, sz); in ubifs_consolidate_log()
Dlpt.c49 long long sz, tot_wastage; in do_calc_lpt_geom() local
106 sz = c->lpt_sz; in do_calc_lpt_geom()
108 sz += per_leb_wastage; in do_calc_lpt_geom()
110 while (sz > c->leb_size) { in do_calc_lpt_geom()
111 sz += per_leb_wastage; in do_calc_lpt_geom()
112 sz -= c->leb_size; in do_calc_lpt_geom()
115 tot_wastage += ALIGN(sz, c->min_io_size) - sz; in do_calc_lpt_geom()
128 long long sz; in ubifs_calc_lpt_geom() local
133 sz = c->lpt_sz * 2; /* Must have at least 2 times the size */ in ubifs_calc_lpt_geom()
134 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in ubifs_calc_lpt_geom()
[all …]
Dcommit.c563 size_t sz; in dbg_check_old_index() local
570 sz = sizeof(struct idx_node) + ubifs_idx_node_sz(c, c->fanout) - in dbg_check_old_index()
587 i = kmalloc(sz, GFP_NOFS); in dbg_check_old_index()
Djournal.c1510 int err, dlen, len, lnum, offs, bit, sz, sync = IS_SYNC(inode); in ubifs_jnl_truncate() local
1523 sz = UBIFS_TRUN_NODE_SZ + UBIFS_INO_NODE_SZ + in ubifs_jnl_truncate()
1526 sz += ubifs_auth_node_sz(c); in ubifs_jnl_truncate()
1528 ino = kmalloc(sz, GFP_NOFS); in ubifs_jnl_truncate()
1606 sz = offs + UBIFS_INO_NODE_SZ + UBIFS_TRUN_NODE_SZ; in ubifs_jnl_truncate()
1607 err = ubifs_tnc_add(c, &key, lnum, sz, dlen, hash_dn); in ubifs_jnl_truncate()
/fs/
Dstatfs.c199 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
203 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3()
220 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
225 if (sz != sizeof(*buf)) in SYSCALL_DEFINE3()
343 int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __u… in kcompat_sys_statfs64() argument
348 if (sz != sizeof(*buf)) in kcompat_sys_statfs64()
357 COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, sz, struct compat_st… in COMPAT_SYSCALL_DEFINE3() argument
359 return kcompat_sys_statfs64(pathname, sz, buf); in COMPAT_SYSCALL_DEFINE3()
362 int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf) in kcompat_sys_fstatfs64() argument
367 if (sz != sizeof(*buf)) in kcompat_sys_fstatfs64()
[all …]
Dbinfmt_elf_fdpic.c1267 int sz; in notesize() local
1269 sz = sizeof(struct elf_note); in notesize()
1270 sz += roundup(strlen(en->name) + 1, 4); in notesize()
1271 sz += roundup(en->datasz, 4); in notesize()
1273 return sz; in notesize()
1315 static inline void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1321 phdr->p_filesz = sz; in fill_elf_note_phdr()
1329 unsigned int sz, void *data) in fill_note() argument
1333 note->datasz = sz; in fill_note()
1443 int sz = 0; in elf_dump_thread_status() local
[all …]
Dd_path.c298 int sz; in dynamic_dname() local
301 sz = vsnprintf(temp, sizeof(temp), fmt, args) + 1; in dynamic_dname()
304 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
307 buffer += buflen - sz; in dynamic_dname()
308 return memcpy(buffer, temp, sz); in dynamic_dname()
Dbinfmt_elf.c1405 int sz; in notesize() local
1407 sz = sizeof(struct elf_note); in notesize()
1408 sz += roundup(strlen(en->name) + 1, 4); in notesize()
1409 sz += roundup(en->datasz, 4); in notesize()
1411 return sz; in notesize()
1447 static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset) in fill_elf_note_phdr() argument
1453 phdr->p_filesz = sz; in fill_elf_note_phdr()
1460 unsigned int sz, void *data) in fill_note() argument
1464 note->datasz = sz; in fill_note()
1937 int sz = 0; in elf_dump_thread_status() local
[all …]
/fs/xfs/
Dxfs_error.c359 int sz; in xfs_buf_verifier_error() local
372 sz = min_t(size_t, XFS_CORRUPTION_DUMP_LEN, bufsz); in xfs_buf_verifier_error()
374 sz); in xfs_buf_verifier_error()
375 xfs_hex_dump(buf, sz); in xfs_buf_verifier_error()
411 int sz; in xfs_inode_verifier_error() local
422 sz = min_t(size_t, XFS_CORRUPTION_DUMP_LEN, bufsz); in xfs_inode_verifier_error()
424 sz); in xfs_inode_verifier_error()
425 xfs_hex_dump(buf, sz); in xfs_inode_verifier_error()
/fs/xfs/scrub/
Dattr.c34 size_t sz; in xchk_setup_xattr_buf() local
42 sz = 3 * sizeof(long) * BITS_TO_LONGS(sc->mp->m_attr_geo->blksize); in xchk_setup_xattr_buf()
43 sz = max_t(size_t, sz, value_size); in xchk_setup_xattr_buf()
50 if (sz <= ab->sz) in xchk_setup_xattr_buf()
60 ab = kmem_alloc_large(sizeof(*ab) + sz, flags); in xchk_setup_xattr_buf()
64 ab->sz = sz; in xchk_setup_xattr_buf()
Dattr.h14 size_t sz; member
/fs/fat/
Dnamei_vfat.c336 int sz = 0, extlen, baselen, i, numtail_baselen, numtail2_baselen; in vfat_create_shortname() local
349 sz = ulen; in vfat_create_shortname()
357 sz = ulen; in vfat_create_shortname()
372 sz = ext_start - uname; in vfat_create_shortname()
375 sz = ulen; in vfat_create_shortname()
382 for (baselen = i = 0, p = base, ip = uname; i < sz; i++, ip++) { in vfat_create_shortname()
399 if ((chi < chl - 1) || (ip + 1) - uname < sz) in vfat_create_shortname()
492 sz = (jiffies >> 16) & 0x7; in vfat_create_shortname()
498 name_res[baselen + 5] = '1' + sz; in vfat_create_shortname()
/fs/jbd2/
Drevoke.c574 int sz, offset; in write_one_revoke_record() local
591 sz = 8; in write_one_revoke_record()
593 sz = 4; in write_one_revoke_record()
597 if (offset + sz > journal->j_blocksize - csum_size) { in write_one_revoke_record()
623 offset += sz; in write_one_revoke_record()
/fs/proc/
Dvmcore.c712 u64 offset, max_sz, sz, real_sz = 0; in update_note_header_size_elf64() local
727 sz = sizeof(Elf64_Nhdr) + in update_note_header_size_elf64()
730 if ((real_sz + sz) > max_sz) { in update_note_header_size_elf64()
735 real_sz += sz; in update_note_header_size_elf64()
736 nhdr_ptr = (Elf64_Nhdr*)((char*)nhdr_ptr + sz); in update_note_header_size_elf64()
903 u64 offset, max_sz, sz, real_sz = 0; in update_note_header_size_elf32() local
918 sz = sizeof(Elf32_Nhdr) + in update_note_header_size_elf32()
921 if ((real_sz + sz) > max_sz) { in update_note_header_size_elf32()
926 real_sz += sz; in update_note_header_size_elf32()
927 nhdr_ptr = (Elf32_Nhdr*)((char*)nhdr_ptr + sz); in update_note_header_size_elf32()
/fs/adfs/
Ddir_fplus.c12 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument
38 if (size != sz) { in adfs_fplus_read()
41 size, sz); in adfs_fplus_read()
/fs/pstore/
Dram.c615 phys_addr_t *paddr, size_t sz, u32 sig) in ramoops_init_prz() argument
619 if (!sz) in ramoops_init_prz()
622 if (*paddr + sz - cxt->phys_addr > cxt->size) { in ramoops_init_prz()
624 name, sz, (unsigned long long)*paddr, in ramoops_init_prz()
630 *prz = persistent_ram_new(*paddr, sz, sig, &cxt->ecc_info, in ramoops_init_prz()
637 name, sz, (unsigned long long)*paddr, err); in ramoops_init_prz()
641 *paddr += sz; in ramoops_init_prz()
/fs/xfs/libxfs/
Dxfs_bmap_btree.h64 #define XFS_BMAP_BROOT_PTR_ADDR(mp, bb, i, sz) \ argument
65 XFS_BMBT_PTR_ADDR(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, 0))
/fs/jffs2/
Ddebug.c266 #define check(sz) \ in __jffs2_dbg_superblock_counts() argument
268 if (sz != c->sz##_size) { \ in __jffs2_dbg_superblock_counts()
270 #sz, sz, #sz, c->sz##_size); \ in __jffs2_dbg_superblock_counts()
/fs/erofs/
Dnamei.c44 #define nameoff_from_disk(off, sz) (le16_to_cpu(off) & ((sz) - 1)) argument
/fs/gfs2/
Dlops.c495 int sz, ret = 0; in gfs2_find_jhead() local
524 sz = bio_add_page(bio, page, bsize, off); in gfs2_find_jhead()
525 if (sz == bsize) { /* block added */ in gfs2_find_jhead()
540 sz = bio_add_page(bio, page, bsize, 0); in gfs2_find_jhead()
541 gfs2_assert_warn(sdp, sz == bsize); in gfs2_find_jhead()
/fs/cifs/
Dsess.c376 int sz = sizeof(AUTHENTICATE_MESSAGE) + ses->auth_key.len in size_of_ntlmssp_blob() local
380 sz += 2 * strnlen(ses->domainName, CIFS_MAX_DOMAINNAME_LEN); in size_of_ntlmssp_blob()
382 sz += 2; in size_of_ntlmssp_blob()
385 sz += 2 * strnlen(ses->user_name, CIFS_MAX_USERNAME_LEN); in size_of_ntlmssp_blob()
387 sz += 2; in size_of_ntlmssp_blob()
389 return sz; in size_of_ntlmssp_blob()
/fs/affs/
Daffs.h17 #define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) argument
/fs/kernfs/
Ddir.c250 int sz; in pr_cont_kernfs_path() local
254 sz = kernfs_path_from_node_locked(kn, NULL, kernfs_pr_cont_buf, in pr_cont_kernfs_path()
256 if (sz < 0) { in pr_cont_kernfs_path()
261 if (sz >= sizeof(kernfs_pr_cont_buf)) { in pr_cont_kernfs_path()

12