| /fs/ |
| A D | stat.c | 404 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) in cp_old_stat() 421 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat() 472 struct stat tmp; in cp_new_stat() local 506 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat() 626 struct stat64 tmp; in cp_new_stat64() local 656 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat64() 710 struct statx tmp; in cp_statx() local 712 memset(&tmp, 0, sizeof(tmp)); in cp_statx() 749 return copy_to_user(buffer, &tmp, sizeof(tmp)) ? -EFAULT : 0; in cp_statx() 839 memset(&tmp, 0, sizeof(tmp)); in cp_compat_stat() [all …]
|
| A D | filesystems.c | 113 tmp = &file_systems; in unregister_filesystem() 114 while (*tmp) { in unregister_filesystem() 115 if (fs == *tmp) { in unregister_filesystem() 116 *tmp = fs->next; in unregister_filesystem() 122 tmp = &(*tmp)->next; in unregister_filesystem() 145 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index() 162 for (tmp = file_systems; tmp; tmp = tmp->next, index--) { in fs_name() 186 for (tmp = file_systems, index = 0 ; tmp ; tmp = tmp->next, index++) in fs_maxindex() 247 while (tmp) { in filesystems_proc_show() 250 tmp->name); in filesystems_proc_show() [all …]
|
| A D | statfs.c | 248 struct ustat tmp; in SYSCALL_DEFINE2() local 255 tmp.f_tfree = sbuf.f_bfree; in SYSCALL_DEFINE2() 259 tmp.f_tinode = sbuf.f_ffree; in SYSCALL_DEFINE2() 305 struct kstatfs tmp; in COMPAT_SYSCALL_DEFINE2() local 314 struct kstatfs tmp; in COMPAT_SYSCALL_DEFINE2() local 348 struct kstatfs tmp; in kcompat_sys_statfs64() local 367 struct kstatfs tmp; in kcompat_sys_fstatfs64() local 373 error = fd_statfs(fd, &tmp); in kcompat_sys_fstatfs64() 391 struct compat_ustat tmp; in COMPAT_SYSCALL_DEFINE2() local 398 tmp.f_tfree = sbuf.f_bfree; in COMPAT_SYSCALL_DEFINE2() [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_bit.c | 41 uint tmp; in xfs_contig_bits() local 49 tmp = *p++; in xfs_contig_bits() 51 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits() 52 if (tmp != ~0U) in xfs_contig_bits() 58 if ((tmp = *p++) != ~0U) in xfs_contig_bits() 80 uint tmp; in xfs_next_bit() local 89 tmp = *p++; in xfs_next_bit() 91 tmp &= (~0U << start_bit); in xfs_next_bit() 92 if (tmp != 0U) in xfs_next_bit() 98 if ((tmp = *p++) != 0U) in xfs_next_bit() [all …]
|
| A D | xfs_refcount.c | 457 tmp = rcext; in xfs_refcount_split_extent() 458 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 465 tmp = rcext; in xfs_refcount_split_extent() 734 *left = tmp; in xfs_refcount_find_left_extents() 754 *cleft = tmp; in xfs_refcount_find_left_extents() 827 *right = tmp; in xfs_refcount_find_right_extents() 847 *cright = tmp; in xfs_refcount_find_right_extents() 1200 if (tmp.rc_refcount) { in xfs_refcount_adjust_extents() 1684 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared() 1708 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared() [all …]
|
| A D | xfs_attr_leaf.c | 1411 int tmp; in xfs_attr3_leaf_add() local 1434 tmp = entsize; in xfs_attr3_leaf_add() 1492 int tmp; in xfs_attr3_leaf_add_work() local 1531 if (tmp) in xfs_attr3_leaf_add_work() 1920 int tmp; in xfs_attr3_leaf_figure_balance() local 1945 totallen = tmp; in xfs_attr3_leaf_figure_balance() 1966 totallen = tmp; in xfs_attr3_leaf_figure_balance() 2140 int tmp; in xfs_attr3_leaf_remove() local 2258 ichdr.firstused = tmp; in xfs_attr3_leaf_remove() 2580 int tmp; in xfs_attr3_leaf_moveents() local [all …]
|
| /fs/affs/ |
| A D | file.c | 73 for (; tmp; tmp >>= 1) in affs_grow_extcache() 145 if (tmp) in affs_alloc_extblock() 244 tmp = ext; in affs_get_extblock_slow() 265 tmp++; in affs_get_extblock_slow() 345 if (tmp) in affs_get_block() 534 u32 tmp; in affs_do_read_folio_ofs() local 549 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_read_folio_ofs() 566 u32 tmp; in affs_extent_file_ofs() local 579 BUG_ON(boff + tmp > bsize || tmp > bsize); in affs_extent_file_ofs() 701 u32 tmp; in affs_write_end_ofs() local [all …]
|
| A D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 73 tmp = be32_to_cpu(*data); in affs_free_block() 74 if (tmp & mask) in affs_free_block() 76 *data = cpu_to_be32(tmp | mask); in affs_free_block() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 188 tmp = be32_to_cpu(*data); in affs_alloc_block() 189 if (tmp & mask) in affs_alloc_block() 201 tmp = be32_to_cpu(*data); in affs_alloc_block() 206 bit = ffs(tmp & mask) - 1; in affs_alloc_block() 213 if (!(tmp & mask2)) in affs_alloc_block() [all …]
|
| /fs/ocfs2/cluster/ |
| A D | nodemanager.c | 188 unsigned long tmp; in o2nm_node_num_store() local 222 node->nd_num = tmp; in o2nm_node_num_store() 242 unsigned long tmp; in o2nm_node_ipv4_port_store() local 249 if (tmp == 0) in o2nm_node_ipv4_port_store() 251 if (tmp >= (u16)-1) in o2nm_node_ipv4_port_store() 327 unsigned long tmp; in o2nm_node_local_store() local 335 tmp = !!tmp; /* boolean of whether this node wants to be local */ in o2nm_node_local_store() 353 if (tmp && tmp == cluster->cl_has_local && in o2nm_node_local_store() 427 unsigned long tmp; in o2nm_cluster_attr_write() local 434 if (tmp == 0) in o2nm_cluster_attr_write() [all …]
|
| /fs/hfs/ |
| A D | bnode.c | 257 int tmp; in hfs_bnode_dump() local 268 int tmp; in hfs_bnode_dump() local 280 struct hfs_bnode *tmp; in hfs_bnode_unlink() local 286 if (IS_ERR(tmp)) in hfs_bnode_unlink() 288 tmp->next = node->next; in hfs_bnode_unlink() 289 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink() 291 hfs_bnode_put(tmp); in hfs_bnode_unlink() 297 if (IS_ERR(tmp)) in hfs_bnode_unlink() 299 tmp->prev = node->prev; in hfs_bnode_unlink() 300 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink() [all …]
|
| A D | string.c | 79 int len, tmp; in hfs_strcmp() local 84 tmp = (int)caseorder[*(s1++)] - (int)caseorder[*(s2++)]; in hfs_strcmp() 85 if (tmp) in hfs_strcmp() 86 return tmp; in hfs_strcmp()
|
| /fs/nfs/ |
| A D | nfsroot.c | 228 char *tmp = NULL; in root_nfs_data() local 231 tmp = kzalloc(tmplen, GFP_KERNEL); in root_nfs_data() 232 if (tmp == NULL) in root_nfs_data() 234 strcpy(tmp, NFS_ROOT); in root_nfs_data() 239 if (root_nfs_parse_options(root_server_path, tmp, tmplen)) in root_nfs_data() 245 if (root_nfs_parse_options(cmdline, tmp, tmplen)) in root_nfs_data() 270 tmp, utsname()->nodename); in root_nfs_data() 281 kfree(tmp); in root_nfs_data()
|
| A D | pagelist.c | 53 i->count = (tmp < req->wb_bytes) ? tmp : req->wb_bytes; in nfs_page_iter_page_advance() 265 struct nfs_page *tmp; in nfs_page_group_sync_on_bit_locked() local 271 while (tmp != req) { in nfs_page_group_sync_on_bit_locked() 274 tmp = tmp->wb_this_page; in nfs_page_group_sync_on_bit_locked() 278 tmp = req; in nfs_page_group_sync_on_bit_locked() 281 tmp = tmp->wb_this_page; in nfs_page_group_sync_on_bit_locked() 282 } while (tmp != req); in nfs_page_group_sync_on_bit_locked() 361 tmp = req; in nfs_page_group_destroy() 365 tmp->wb_this_page = tmp; in nfs_page_group_destroy() 366 tmp->wb_head = tmp; in nfs_page_group_destroy() [all …]
|
| /fs/nls/ |
| A D | nls_base.c | 237 struct nls_table ** tmp = &tables; in __register_nls() local 244 while (*tmp) { in __register_nls() 245 if (nls == *tmp) { in __register_nls() 249 tmp = &(*tmp)->next; in __register_nls() 260 struct nls_table ** tmp = &tables; in unregister_nls() local 263 while (*tmp) { in unregister_nls() 264 if (nls == *tmp) { in unregister_nls() 265 *tmp = nls->next; in unregister_nls() 269 tmp = &(*tmp)->next; in unregister_nls()
|
| /fs/gfs2/ |
| A D | bmap.h | 34 unsigned int tmp; in gfs2_write_calc_reserv() local 40 for (tmp = *data_blocks; tmp > sdp->sd_diptrs;) { in gfs2_write_calc_reserv() 41 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); in gfs2_write_calc_reserv() 42 *ind_blocks += tmp; in gfs2_write_calc_reserv()
|
| /fs/smb/client/ |
| A D | namespace.c | 199 struct smb3_fs_context tmp; in cifs_do_automount() local 238 tmp = *cur_ctx; in cifs_do_automount() 239 tmp.source = NULL; in cifs_do_automount() 240 tmp.leaf_fullpath = NULL; in cifs_do_automount() 241 tmp.UNC = tmp.prepath = NULL; in cifs_do_automount() 242 tmp.dfs_root_ses = NULL; in cifs_do_automount() 243 fs_context_set_ids(&tmp); in cifs_do_automount() 245 rc = smb3_fs_context_dup(ctx, &tmp); in cifs_do_automount()
|
| /fs/omfs/ |
| A D | bitmap.c | 98 u64 tmp; in omfs_allocate_block() local 100 tmp = block; in omfs_allocate_block() 101 bit = do_div(tmp, bits_per_entry); in omfs_allocate_block() 102 map = tmp; in omfs_allocate_block() 179 u64 tmp; in omfs_clear_range() local 183 tmp = block; in omfs_clear_range() 184 bit = do_div(tmp, bits_per_entry); in omfs_clear_range() 185 map = tmp; in omfs_clear_range()
|
| /fs/ufs/ |
| A D | inode.c | 232 u64 tmp; in ufs_extend_tail() local 268 if (tmp) in ufs_inode_getfrag() 287 if (!tmp) { in ufs_inode_getfrag() 340 if (tmp) in ufs_inode_getblock() 351 if (!tmp) in ufs_inode_getblock() 365 if (tmp) in ufs_inode_getblock() 367 return tmp; in ufs_inode_getblock() 912 if (!tmp) in ufs_trunc_direct() 926 if (!tmp) in ufs_trunc_direct() 935 if (!tmp) in ufs_trunc_direct() [all …]
|
| A D | util.h | 86 __fs64 tmp; in ufs_get_fs_qbmask() local 91 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_sun.fs_qbmask[0]; in ufs_get_fs_qbmask() 92 ((__fs32 *)&tmp)[1] = usb3->fs_un2.fs_sun.fs_qbmask[1]; in ufs_get_fs_qbmask() 99 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_44.fs_qbmask[0]; in ufs_get_fs_qbmask() 100 ((__fs32 *)&tmp)[1] = usb3->fs_un2.fs_44.fs_qbmask[1]; in ufs_get_fs_qbmask() 104 return fs64_to_cpu(sb, tmp); in ufs_get_fs_qbmask() 110 __fs64 tmp; in ufs_get_fs_qfmask() local 115 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_sun.fs_qfmask[0]; in ufs_get_fs_qfmask() 123 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_44.fs_qfmask[0]; in ufs_get_fs_qfmask() 124 ((__fs32 *)&tmp)[1] = usb3->fs_un2.fs_44.fs_qfmask[1]; in ufs_get_fs_qfmask() [all …]
|
| /fs/hfsplus/ |
| A D | bnode.c | 406 int tmp; in hfs_bnode_dump() local 417 int tmp; in hfs_bnode_dump() local 429 struct hfs_bnode *tmp; in hfs_bnode_unlink() local 435 if (IS_ERR(tmp)) in hfs_bnode_unlink() 437 tmp->next = node->next; in hfs_bnode_unlink() 439 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink() 441 hfs_bnode_put(tmp); in hfs_bnode_unlink() 447 if (IS_ERR(tmp)) in hfs_bnode_unlink() 449 tmp->prev = node->prev; in hfs_bnode_unlink() 451 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink() [all …]
|
| /fs/smb/server/ |
| A D | unicode.c | 112 char tmp[NLS_MAX_CHARSET_SIZE]; in smb_utf16_bytes() local 126 charlen = cifs_mapchar(tmp, ftmp, codepage, 0); in smb_utf16_bytes() 167 char tmp[NLS_MAX_CHARSET_SIZE]; in smb_from_utf16() local 194 charlen = cifs_mapchar(tmp, ftmp, codepage, mapchar); in smb_from_utf16() 348 wchar_t tmp; in smbConvertToUTF16() local 387 charlen = cp->char2uni(source + i, srclen - i, &tmp); in smbConvertToUTF16() 388 dst_char = cpu_to_le16(tmp); in smbConvertToUTF16()
|
| /fs/bcachefs/ |
| A D | buckets_waiting_for_journal.c | 90 struct bucket_hashed tmp, new = { in bch2_set_bucket_needs_journal_commit() local 129 tmp = new; in bch2_set_bucket_needs_journal_commit() 130 BUG_ON(!bucket_table_insert(n, &tmp, flushed_seq)); in bch2_set_bucket_needs_journal_commit() 136 tmp = t->d[i]; in bch2_set_bucket_needs_journal_commit() 137 if (!bucket_table_insert(n, &tmp, flushed_seq)) in bch2_set_bucket_needs_journal_commit()
|
| /fs/proc/ |
| A D | vmcore.c | 164 ssize_t read = 0, tmp; in read_from_oldmem() local 192 if (tmp < nr_bytes) { in read_from_oldmem() 336 ssize_t acc = 0, tmp; in __read_vmcore() local 414 if (tmp < 0) in __read_vmcore() 415 return tmp; in __read_vmcore() 865 char *tmp; in merge_note_headers_elf64() local 902 tmp += sizeof(phdr); in merge_note_headers_elf64() 907 memmove(tmp, tmp+i, ((*elfsz)-sizeof(Elf64_Ehdr)-sizeof(Elf64_Phdr))); in merge_note_headers_elf64() 1056 char *tmp; in merge_note_headers_elf32() local 1093 tmp += sizeof(phdr); in merge_note_headers_elf32() [all …]
|
| A D | kcore.c | 166 struct kcore_list *vmm, *tmp; in get_sparsemem_vmemmap_info() local 173 list_for_each_entry(tmp, head, list) { in get_sparsemem_vmemmap_info() 174 if (tmp->type != KCORE_VMEMMAP) in get_sparsemem_vmemmap_info() 176 if (start < tmp->addr + tmp->size) in get_sparsemem_vmemmap_info() 177 if (end > tmp->addr) in get_sparsemem_vmemmap_info() 178 end = tmp->addr; in get_sparsemem_vmemmap_info() 276 struct kcore_list *tmp, *pos; in kcore_update_ram() local 291 list_for_each_entry_safe(pos, tmp, &kclist_head, list) { in kcore_update_ram() 301 list_for_each_entry_safe(pos, tmp, &garbage, list) { in kcore_update_ram()
|
| /fs/jffs2/ |
| A D | xattr.c | 794 struct jffs2_xattr_ref *tmp; in jffs2_build_xattr_subsystem() local 808 for (tmp=xref_tmphash[i]; tmp; tmp=tmp->next) { in jffs2_build_xattr_subsystem() 809 if (tmp->ino == ref->ino && tmp->xid == ref->xid) in jffs2_build_xattr_subsystem() 812 if (tmp) { in jffs2_build_xattr_subsystem() 815 tmp->xseqno = ref->xseqno; in jffs2_build_xattr_subsystem() 816 raw->next_in_ino = tmp->node; in jffs2_build_xattr_subsystem() 817 tmp->node = raw; in jffs2_build_xattr_subsystem() 820 tmp->node->next_in_ino = raw; in jffs2_build_xattr_subsystem() 1347 for (tmp=c->xref_dead_list, ptmp=&c->xref_dead_list; tmp; ptmp=&tmp->next, tmp=tmp->next) { in jffs2_release_xattr_ref() 1348 if (ref == tmp) { in jffs2_release_xattr_ref() [all …]
|