Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 25 of 91) sorted by relevance

1234

/fs/ubifs/
A Dsb.c166 idx = kzalloc(ALIGN(idx_node_size, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
168 cs = kzalloc(ALIGN(UBIFS_CS_NODE_SZ, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
237 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
238 mst->index_size = cpu_to_le64(ALIGN(tmp, 8)); in create_default_filesystem()
255 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
256 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
259 tmp64 = ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
260 ino_waste = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size) - in create_default_filesystem()
263 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), 8); in create_default_filesystem()
617 int len = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); in ubifs_write_sb_node()
[all …]
A Dtnc_commit.c79 c->calc_idx_sz += ALIGN(len, 8); in make_idx_node()
124 const int alen = ALIGN(len, 8); in fill_gap()
268 dirt += ALIGN(snod->len, 8); in layout_leb_in_gaps()
491 c->calc_idx_sz += ALIGN(len, 8); in layout_in_empty_space()
511 used += ALIGN(len, 8); in layout_in_empty_space()
512 avail -= ALIGN(len, 8); in layout_in_empty_space()
523 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space()
969 used += ALIGN(len, 8); in write_index()
970 avail -= ALIGN(len, 8); in write_index()
988 wlen = ALIGN(wlen, 8); in write_index()
[all …]
A Djournal.c247 node += ALIGN(nodelen, 8); in ubifs_hash_nodes()
248 len -= ALIGN(nodelen, 8); in ubifs_hash_nodes()
1271 p += ALIGN(plen, 8); in ubifs_jnl_xrename()
1310 offs += ALIGN(plen, 8); in ubifs_jnl_xrename()
1406 ALIGN(wlen, 8) + ALIGN(plen, 8); in ubifs_jnl_rename()
1465 p += ALIGN(ilen, 8); in ubifs_jnl_rename()
1474 p += ALIGN(wlen, 8); in ubifs_jnl_rename()
1488 p += ALIGN(plen, 8); in ubifs_jnl_rename()
1552 offs += ALIGN(ilen, 8); in ubifs_jnl_rename()
1561 offs += ALIGN(wlen, 8); in ubifs_jnl_rename()
[all …]
A Dlog.c368 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
418 ubifs_pad(c, buf + len, ALIGN(len, c->min_io_size) - len); in ubifs_log_start_commit()
432 len = ALIGN(len, c->min_io_size); in ubifs_log_start_commit()
618 int sz = ALIGN(*offs, c->min_io_size), err; in add_node()
628 *offs += ALIGN(len, 8); in add_node()
697 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
703 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
A Drecovery.c411 empty_offs = ALIGN(offs + 1, c->max_write_size); in is_last_write()
437 empty_offs = ALIGN(*offs, c->min_io_size); in clean_buf()
465 skip = ALIGN(offs + UBIFS_CH_SZ, c->max_write_size) - offs; in no_more_nodes()
477 skip = ALIGN(offs + dlen, c->max_write_size) - offs; in no_more_nodes()
528 int len = ALIGN(endpt, c->min_io_size); in fix_unclean_leb()
538 int pad_len = len - ALIGN(endpt, 8); in fix_unclean_leb()
656 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_recover_leb()
1012 node_len = ALIGN(le32_to_cpu(ch->len), 8); in clean_an_unclean_leb()
1044 len = ALIGN(ucleb->endpt, c->min_io_size); in clean_an_unclean_leb()
1046 int pad_len = len - ALIGN(ucleb->endpt, 8); in clean_an_unclean_leb()
[all …]
A Dscan.c107 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
169 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
307 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_scan()
A Dxattr.c75 .new_ino_d = ALIGN(size, 8), .dirtied_ino = 1, in create_xattr()
76 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
186 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
455 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in remove_xattr()
A Dlpt_commit.c223 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
266 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
286 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
302 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
404 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
463 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
489 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
512 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
519 err = dbg_chk_lpt_sz(c, 3, ALIGN(offs, c->min_io_size)); in write_cnodes()
524 c->nhead_offs = ALIGN(offs, c->min_io_size); in write_cnodes()
[all …]
A Dio.c392 len = ALIGN(len, 8); in ubifs_init_node()
393 pad = ALIGN(len, c->min_io_size) - len; in ubifs_init_node()
586 sync_len = ALIGN(wbuf->used, c->min_io_size); in ubifs_wbuf_sync_nolock()
609 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_sync_nolock()
650 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_seek_nolock()
743 int err, n, written = 0, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock()
960 int err, buf_len = ALIGN(len, c->min_io_size); in ubifs_write_node_hmac()
A Dlpt.c115 tot_wastage += ALIGN(sz, c->min_io_size) - sz; in do_calc_lpt_geom()
658 node_sz = ALIGN(ubifs_idx_node_sz(c, 1), 8); in ubifs_create_dflt_lpt()
659 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
665 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
702 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
735 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
783 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
808 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
823 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
840 c->nhead_offs = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
A Ddir.c759 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_link()
1108 req.new_ino_d = ALIGN(devlen, 8); in ubifs_mknod()
1198 req.new_ino_d = ALIGN(disk_link.len - 1, 8); in ubifs_symlink()
1337 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) }; in do_rename()
1360 req.dirtied_ino_d = ALIGN(ubifs_inode(new_inode)->data_len, 8); in do_rename()
1427 wht_req.new_ino_d = ALIGN(whiteout_ui->data_len, 8); in do_rename()
1712 size = ALIGN(size, UBIFS_BLOCK_SIZE); in ubifs_getattr()
A Dsuper.c578 c->ref_node_alsz = ALIGN(UBIFS_REF_NODE_SZ, c->min_io_size); in init_constants_early()
579 c->mst_node_alsz = ALIGN(UBIFS_MST_NODE_SZ, c->min_io_size); in init_constants_early()
623 c->dead_wm = ALIGN(MIN_WRITE_SZ, c->min_io_size); in init_constants_early()
624 c->dark_wm = ALIGN(UBIFS_MAX_NODE_SZ, c->min_io_size); in init_constants_early()
684 c->min_idx_node_sz = ALIGN(tmp, 8); in init_constants_sb()
688 c->max_idx_node_sz = ALIGN(tmp, 8); in init_constants_sb()
692 tmp = ALIGN(tmp, c->min_io_size); in init_constants_sb()
1311 sz = ALIGN(c->max_idx_node_sz, c->min_io_size) * 2; in mount_ubifs()
A Dorphan.c263 len = ALIGN(len, c->min_io_size); in do_write_orph_node()
337 c->ohead_offs += ALIGN(len, c->min_io_size); in write_orph_node()
338 c->ohead_offs = ALIGN(c->ohead_offs, 8); in write_orph_node()
/fs/proc/
A Dkcore.c123 ALIGN(sizeof(NN_PRSTATUS), 4) + in update_kcore_size()
124 ALIGN(sizeof(NN_PRPSINFO), 4) + in update_kcore_size()
125 ALIGN(sizeof(NN_TASKSTRUCT), 4) + in update_kcore_size()
127 ALIGN(sizeof(struct elf_prstatus), 4) + in update_kcore_size()
128 ALIGN(sizeof(struct elf_prpsinfo), 4) + in update_kcore_size()
129 ALIGN(arch_task_struct_size, 4) + in update_kcore_size()
130 ALIGN(vmcoreinfo_size, 4)); in update_kcore_size()
319 *i = ALIGN(*i + note->n_namesz, 4); in append_kcore_note()
321 *i = ALIGN(*i + descsz, 4); in append_kcore_note()
/fs/gfs2/
A Dxattr.h17 ALIGN(sizeof(struct gfs2_ea_header) + (ea)->ea_name_len + \
25 ALIGN(sizeof(struct gfs2_ea_header) + (er)->er_name_len + (er)->er_data_len, 8)
31 ((__be64 *)(GFS2_EA2NAME(ea) + ALIGN((ea)->ea_name_len, 8)))
/fs/smb/server/
A Dndr.c106 n->offset = ALIGN(n->offset, 2); in ndr_write_string()
122 n->offset = ALIGN(n->offset, 2); in ndr_read_string()
304 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
314 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
324 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
327 n->offset = ALIGN(n->offset, 8); in ndr_encode_posix_acl_entry()
/fs/btrfs/
A Ddelalloc-space.c133 bytes = ALIGN(bytes, fs_info->sectorsize); in btrfs_alloc_data_chunk_ondemand()
342 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata()
343 disk_num_bytes = ALIGN(disk_num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata()
410 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata()
A Dreflink.c177 const u64 aligned_end = ALIGN(new_key->offset + datal, in clone_copy_inline_extent()
557 last_dest_end = ALIGN(new_key.offset + datal, in btrfs_clone()
652 ALIGN(len, bs), dst_loff, 1); in btrfs_extent_same_range()
723 len = ALIGN(src->i_size, bs) - off; in btrfs_clone_files()
817 wb_len = ALIGN(inode_in->vfs_inode.i_size, bs) - ALIGN_DOWN(pos_in, bs); in btrfs_remap_file_range_prep()
819 wb_len = ALIGN(*len, bs); in btrfs_remap_file_range_prep()
A Dsend.h31 #define BTRFS_SEND_BUF_SIZE_V2 ALIGN(SZ_16K + BTRFS_MAX_COMPRESSED, PAGE_SIZE)
/fs/ntfs3/
A Drecord.c246 static_assert(ALIGN(sizeof(enum ATTR_TYPE), 8) == 8); in mi_enum_attr()
591 dsize = ALIGN(bytes, 8); in mi_resize_attr()
601 dsize = ALIGN(-bytes, 8); in mi_resize_attr()
652 new_run_size = ALIGN(err, 8); in mi_pack_runs()
/fs/smb/client/
A Dsmb2pdu.h436 (ALIGN((SMB2_WSL_NUM_XATTRS - 1) * \
442 (ALIGN(SMB2_WSL_MIN_QUERY_EA_RESP_SIZE + \
/fs/
A Dreaddir.c266 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
354 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
520 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) + in compat_filldir()
A Dbinfmt_flat.c560 datapos = ALIGN(realdatastart + in load_flat_file()
608 datapos = ALIGN(realdatastart + in load_flat_file()
878 stack_len = ALIGN(stack_len, FLAT_STACK_ALIGN); in load_flat_binary()
/fs/adfs/
A Ddir_fplus.c15 ALIGN(le32_to_cpu(h->bigdirnamelen), 4) + in adfs_fplus_offset()
34 len = ALIGN(le32_to_cpu(h->bigdirnamelen), 4); in adfs_fplus_validate_header()
/fs/udf/
A Dtruncate.c137 ALIGN(inode->i_size, bsize) == ALIGN(iinfo->i_lenExtents, bsize)) in udf_discard_prealloc()

Completed in 60 milliseconds

1234