Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 148) sorted by relevance

123456

/fs/
Dfilesystems.c104 struct file_system_type ** tmp; in unregister_filesystem() local
107 tmp = &file_systems; in unregister_filesystem()
108 while (*tmp) { in unregister_filesystem()
109 if (fs == *tmp) { in unregister_filesystem()
110 *tmp = fs->next; in unregister_filesystem()
115 tmp = &(*tmp)->next; in unregister_filesystem()
125 struct file_system_type * tmp; in fs_index() local
136 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index()
137 if (strcmp(tmp->name,name) == 0) { in fs_index()
149 struct file_system_type * tmp; in fs_name() local
[all …]
Dstat.c121 struct __old_kernel_stat tmp; in cp_old_stat() local
132 memset(&tmp, 0, sizeof(struct __old_kernel_stat)); in cp_old_stat()
133 tmp.st_dev = old_encode_dev(stat->dev); in cp_old_stat()
134 tmp.st_ino = stat->ino; in cp_old_stat()
135 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) in cp_old_stat()
137 tmp.st_mode = stat->mode; in cp_old_stat()
138 tmp.st_nlink = stat->nlink; in cp_old_stat()
139 if (tmp.st_nlink != stat->nlink) in cp_old_stat()
141 SET_UID(tmp.st_uid, stat->uid); in cp_old_stat()
142 SET_GID(tmp.st_gid, stat->gid); in cp_old_stat()
[all …]
Ddcache.c350 struct list_head *head, *next, *tmp; in __d_find_alias() local
356 tmp = next; in __d_find_alias()
357 next = tmp->next; in __d_find_alias()
359 alias = list_entry(tmp, struct dentry, d_alias); in __d_find_alias()
456 LIST_HEAD(tmp); in __shrink_dcache_sb()
468 list_splice_init(&sb->s_dentry_lru, &tmp); in __shrink_dcache_sb()
487 list_move_tail(&dentry->d_lru, &tmp); in __shrink_dcache_sb()
496 while (!list_empty(&tmp)) { in __shrink_dcache_sb()
497 dentry = list_entry(tmp.prev, struct dentry, d_lru); in __shrink_dcache_sb()
769 struct list_head *tmp = next; in have_submounts() local
[all …]
/fs/affs/
Dfile.c91 u32 lc_shift, lc_mask, tmp, off; in affs_grow_extcache() local
95 tmp = (AFFS_I(inode)->i_extcnt / AFFS_LC_SIZE) >> lc_shift; in affs_grow_extcache()
96 for (; tmp; tmp >>= 1) in affs_grow_extcache()
147 u32 blocknr, tmp; in affs_alloc_extblock() local
167 tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_alloc_extblock()
168 if (tmp) in affs_alloc_extblock()
169 affs_warning(sb, "alloc_ext", "previous extension set (%x)", tmp); in affs_alloc_extblock()
171 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
201 u32 tmp, idx; in affs_get_extblock_slow() local
269 tmp = ext; in affs_get_extblock_slow()
[all …]
Dbitmap.c21 u32 tmp; in affs_count_free_bits() local
26 tmp = *map++; in affs_count_free_bits()
27 while (tmp) { in affs_count_free_bits()
28 free += nibblemap[tmp & 0xf]; in affs_count_free_bits()
29 tmp >>= 4; in affs_count_free_bits()
66 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
95 tmp = be32_to_cpu(*data); in affs_free_block()
96 if (tmp & mask) in affs_free_block()
98 *data = cpu_to_be32(tmp | mask); in affs_free_block()
101 tmp = be32_to_cpu(*(__be32 *)bh->b_data); in affs_free_block()
[all …]
/fs/ufs/
Dtruncate.c75 unsigned i, tmp; in ufs_trunc_direct() local
113 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_trunc_direct()
114 if (!tmp ) in ufs_trunc_direct()
119 ufs_free_fragments(inode, tmp + frag1, frag2); in ufs_trunc_direct()
121 frag_to_free = tmp + frag1; in ufs_trunc_direct()
129 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_trunc_direct()
130 if (!tmp) in ufs_trunc_direct()
135 frag_to_free = tmp; in ufs_trunc_direct()
137 } else if (free_count > 0 && frag_to_free == tmp - free_count) in ufs_trunc_direct()
141 frag_to_free = tmp; in ufs_trunc_direct()
[all …]
Dinode.c183 u64 tmp, goal, lastfrag, block, lastblock; in ufs_inode_getfrag() local
202 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_inode_getfrag()
205 if (tmp && fragment < lastfrag) { in ufs_inode_getfrag()
207 result = sb_getblk(sb, uspi->s_sbbase + tmp + blockoff); in ufs_inode_getfrag()
208 if (tmp == ufs_data_ptr_to_cpu(sb, p)) { in ufs_inode_getfrag()
210 (unsigned long long)tmp + blockoff); in ufs_inode_getfrag()
216 *phys = uspi->s_sbbase + tmp + blockoff; in ufs_inode_getfrag()
232 tmp = ufs_new_fragments(inode, p2, lastfrag, in ufs_inode_getfrag()
236 if (!tmp) { in ufs_inode_getfrag()
245 tmp = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag()
[all …]
/fs/xfs/
Dxfs_bit.c55 uint tmp; in xfs_contig_bits() local
63 tmp = *p++; in xfs_contig_bits()
65 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits()
66 if (tmp != ~0U) in xfs_contig_bits()
72 if ((tmp = *p++) != ~0U) in xfs_contig_bits()
79 return result + ffz(tmp) - start_bit; in xfs_contig_bits()
94 uint tmp; in xfs_next_bit() local
103 tmp = *p++; in xfs_next_bit()
105 tmp &= (~0U << start_bit); in xfs_next_bit()
106 if (tmp != 0U) in xfs_next_bit()
[all …]
Dxfs_attr_leaf.c1006 int tablesize, entsize, sum, tmp, i; in xfs_attr_leaf_add() local
1031 tmp = entsize; in xfs_attr_leaf_add()
1033 tmp += sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_add()
1034 if (be16_to_cpu(map->size) >= tmp) { in xfs_attr_leaf_add()
1035 tmp = xfs_attr_leaf_add_work(bp, args, i); in xfs_attr_leaf_add()
1036 return(tmp); in xfs_attr_leaf_add()
1079 int tmp, i; in xfs_attr_leaf_add_work() local
1092 tmp = be16_to_cpu(hdr->count) - args->index; in xfs_attr_leaf_add_work()
1093 tmp *= sizeof(xfs_attr_leaf_entry_t); in xfs_attr_leaf_add_work()
1094 memmove((char *)(entry+1), (char *)entry, tmp); in xfs_attr_leaf_add_work()
[all …]
/fs/nls/
Dnls_base.c162 struct nls_table ** tmp = &tables; in register_nls() local
168 while (*tmp) { in register_nls()
169 if (nls == *tmp) { in register_nls()
173 tmp = &(*tmp)->next; in register_nls()
183 struct nls_table ** tmp = &tables; in unregister_nls() local
186 while (*tmp) { in unregister_nls()
187 if (nls == *tmp) { in unregister_nls()
188 *tmp = nls->next; in unregister_nls()
192 tmp = &(*tmp)->next; in unregister_nls()
/fs/hfs/
Dbnode.c151 int tmp; in hfs_bnode_dump() local
154 tmp = (hfs_bnode_read_u8(node, key_off) | 1) + 1; in hfs_bnode_dump()
156 tmp = node->tree->max_key_len + 1; in hfs_bnode_dump()
157 dprint(DBG_BNODE_MOD, " (%d,%d", tmp, hfs_bnode_read_u8(node, key_off)); in hfs_bnode_dump()
158 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
161 int tmp; in hfs_bnode_dump() local
163 tmp = hfs_bnode_read_u8(node, key_off); in hfs_bnode_dump()
164 dprint(DBG_BNODE_MOD, " (%d)", tmp); in hfs_bnode_dump()
173 struct hfs_bnode *tmp; in hfs_bnode_unlink() local
178 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink()
[all …]
Dsuper.c210 int tmp, token; in parse_options() local
232 if (match_int(&args[0], &tmp)) { in parse_options()
236 hsb->s_uid = (uid_t)tmp; in parse_options()
239 if (match_int(&args[0], &tmp)) { in parse_options()
243 hsb->s_gid = (gid_t)tmp; in parse_options()
246 if (match_octal(&args[0], &tmp)) { in parse_options()
250 hsb->s_file_umask = (umode_t)tmp; in parse_options()
251 hsb->s_dir_umask = (umode_t)tmp; in parse_options()
254 if (match_octal(&args[0], &tmp)) { in parse_options()
258 hsb->s_file_umask = (umode_t)tmp; in parse_options()
[all …]
/fs/ocfs2/cluster/
Dnodemanager.c194 unsigned long tmp; in o2nm_node_num_write() local
197 tmp = simple_strtoul(p, &p, 0); in o2nm_node_num_write()
201 if (tmp >= O2NM_MAX_NODES) in o2nm_node_num_write()
213 if (cluster->cl_nodes[tmp]) in o2nm_node_num_write()
216 cluster->cl_nodes[tmp] = node; in o2nm_node_num_write()
217 node->nd_num = tmp; in o2nm_node_num_write()
218 set_bit(tmp, cluster->cl_nodes_bitmap); in o2nm_node_num_write()
234 unsigned long tmp; in o2nm_node_ipv4_port_write() local
237 tmp = simple_strtoul(p, &p, 0); in o2nm_node_ipv4_port_write()
241 if (tmp == 0) in o2nm_node_ipv4_port_write()
[all …]
/fs/gfs2/
Dbmap.h35 unsigned int tmp; in gfs2_write_calc_reserv() local
41 for (tmp = *data_blocks; tmp > sdp->sd_diptrs;) { in gfs2_write_calc_reserv()
42 tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); in gfs2_write_calc_reserv()
43 *ind_blocks += tmp; in gfs2_write_calc_reserv()
/fs/qnx4/
Dfsync.c34 unsigned short tmp; in sync_block() local
38 tmp = *block; in sync_block()
42 if (*block != tmp) { in sync_block()
64 unsigned short tmp; in sync_iblock() local
67 tmp = *iblock; in sync_iblock()
68 if (!tmp) in sync_iblock()
73 *bh = sb_bread(inode->i_sb, tmp); in sync_iblock()
74 if (tmp != *iblock) { in sync_iblock()
/fs/afs/
Dvlclient.c65 u32 tmp; in afs_deliver_vl_get_entry_by_xxx() local
95 tmp = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
97 if (tmp & AFS_VLSF_RWVOL) in afs_deliver_vl_get_entry_by_xxx()
99 if (tmp & AFS_VLSF_ROVOL) in afs_deliver_vl_get_entry_by_xxx()
101 if (tmp & AFS_VLSF_BACKVOL) in afs_deliver_vl_get_entry_by_xxx()
111 tmp = ntohl(*bp++); /* flags */ in afs_deliver_vl_get_entry_by_xxx()
113 if (tmp & AFS_VLF_RWEXISTS) in afs_deliver_vl_get_entry_by_xxx()
115 if (tmp & AFS_VLF_ROEXISTS) in afs_deliver_vl_get_entry_by_xxx()
117 if (tmp & AFS_VLF_BACKEXISTS) in afs_deliver_vl_get_entry_by_xxx()
/fs/proc/
Dvmcore.c43 ssize_t read = 0, tmp; in read_from_oldmem() local
57 tmp = copy_oldmem_page(pfn, buf, nr_bytes, offset, userbuf); in read_from_oldmem()
58 if (tmp < 0) in read_from_oldmem()
59 return tmp; in read_from_oldmem()
98 ssize_t acc = 0, tmp; in read_vmcore() local
139 tmp = read_from_oldmem(buffer, tsz, &start, 1); in read_vmcore()
140 if (tmp < 0) in read_vmcore()
141 return tmp; in read_vmcore()
216 char *tmp; in merge_note_headers_elf64() local
277 tmp = elfptr + sizeof(Elf64_Ehdr); in merge_note_headers_elf64()
[all …]
/fs/omfs/
Dbitmap.c97 u64 tmp; in omfs_allocate_block() local
99 tmp = block; in omfs_allocate_block()
100 bit = do_div(tmp, bits_per_entry); in omfs_allocate_block()
101 map = tmp; in omfs_allocate_block()
178 u64 tmp; in omfs_clear_range() local
182 tmp = block; in omfs_clear_range()
183 bit = do_div(tmp, bits_per_entry); in omfs_clear_range()
184 map = tmp; in omfs_clear_range()
/fs/hfsplus/
Doptions.c73 int tmp, token; in hfsplus_parse_options() local
97 if (match_octal(&args[0], &tmp)) { in hfsplus_parse_options()
101 sbi->umask = (umode_t)tmp; in hfsplus_parse_options()
104 if (match_int(&args[0], &tmp)) { in hfsplus_parse_options()
108 sbi->uid = (uid_t)tmp; in hfsplus_parse_options()
111 if (match_int(&args[0], &tmp)) { in hfsplus_parse_options()
115 sbi->gid = (gid_t)tmp; in hfsplus_parse_options()
Dbnode.c311 int tmp; in hfs_bnode_dump() local
314 tmp = hfs_bnode_read_u16(node, key_off) + 2; in hfs_bnode_dump()
316 tmp = node->tree->max_key_len + 2; in hfs_bnode_dump()
317 dprint(DBG_BNODE_MOD, " (%d", tmp); in hfs_bnode_dump()
318 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
321 int tmp; in hfs_bnode_dump() local
323 tmp = hfs_bnode_read_u16(node, key_off); in hfs_bnode_dump()
324 dprint(DBG_BNODE_MOD, " (%d)", tmp); in hfs_bnode_dump()
333 struct hfs_bnode *tmp; in hfs_bnode_unlink() local
338 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink()
[all …]
/fs/ext4/
Dballoc.c60 ext4_fsblk_t tmp; in ext4_group_used_meta_blocks() local
78 tmp = ext4_inode_table(sb, gdp); in ext4_group_used_meta_blocks()
79 for (; tmp < ext4_inode_table(sb, gdp) + in ext4_group_used_meta_blocks()
80 sbi->s_itb_per_group; tmp++) { in ext4_group_used_meta_blocks()
81 if (!ext4_block_in_group(sb, tmp, block_group)) in ext4_group_used_meta_blocks()
145 ext4_fsblk_t start, tmp; in ext4_init_block_bitmap() local
158 tmp = ext4_block_bitmap(sb, gdp); in ext4_init_block_bitmap()
159 if (!flex_bg || ext4_block_in_group(sb, tmp, block_group)) in ext4_init_block_bitmap()
160 ext4_set_bit(tmp - start, bh->b_data); in ext4_init_block_bitmap()
162 tmp = ext4_inode_bitmap(sb, gdp); in ext4_init_block_bitmap()
[all …]
/fs/ext2/
Dxip.c36 struct buffer_head tmp; in __ext2_get_block() local
39 memset(&tmp, 0, sizeof(struct buffer_head)); in __ext2_get_block()
40 rc = ext2_get_block(inode, pgoff, &tmp, create); in __ext2_get_block()
41 *result = tmp.b_blocknr; in __ext2_get_block()
44 if (!tmp.b_blocknr && !rc) { in __ext2_get_block()
/fs/autofs4/
Dwaitq.c188 struct dentry *tmp; in autofs4_getpath() local
194 for (tmp = dentry ; tmp != root ; tmp = tmp->d_parent) in autofs4_getpath()
195 len += tmp->d_name.len + 1; in autofs4_getpath()
206 for (tmp = dentry->d_parent; tmp != root ; tmp = tmp->d_parent) { in autofs4_getpath()
208 p -= tmp->d_name.len; in autofs4_getpath()
209 strncpy(p, tmp->d_name.name, tmp->d_name.len); in autofs4_getpath()
/fs/ubifs/
Dsb.c81 int err, tmp, jnl_lebs, log_lebs, max_buds, main_lebs, main_first; in create_default_filesystem() local
111 tmp = 2 * (c->ref_node_alsz * jnl_lebs) + c->leb_size - 1; in create_default_filesystem()
112 log_lebs = tmp / c->leb_size; in create_default_filesystem()
159 tmp = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); in create_default_filesystem()
160 sup = kzalloc(tmp, GFP_KERNEL); in create_default_filesystem()
215 tmp = ubifs_idx_node_sz(c, 1); in create_default_filesystem()
216 mst->root_len = cpu_to_le32(tmp); in create_default_filesystem()
219 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
220 mst->index_size = cpu_to_le64(ALIGN(tmp, 8)); in create_default_filesystem()
268 tmp = ubifs_idx_node_sz(c, 1); in create_default_filesystem()
[all …]
/fs/nfsd/
Dnfsxdr.c100 u32 tmp, tmp1; in decode_sattr() local
108 if ((tmp = ntohl(*p++)) != (u32)-1 && tmp != 0xffff) { in decode_sattr()
110 iap->ia_mode = tmp; in decode_sattr()
112 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr()
114 iap->ia_uid = tmp; in decode_sattr()
116 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr()
118 iap->ia_gid = tmp; in decode_sattr()
120 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr()
122 iap->ia_size = tmp; in decode_sattr()
124 tmp = ntohl(*p++); tmp1 = ntohl(*p++); in decode_sattr()
[all …]

123456