/fs/ |
D | stat.c | 212 struct __old_kernel_stat tmp; in cp_old_stat() local 223 memset(&tmp, 0, sizeof(struct __old_kernel_stat)); in cp_old_stat() 224 tmp.st_dev = old_encode_dev(stat->dev); in cp_old_stat() 225 tmp.st_ino = stat->ino; in cp_old_stat() 226 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) in cp_old_stat() 228 tmp.st_mode = stat->mode; in cp_old_stat() 229 tmp.st_nlink = stat->nlink; in cp_old_stat() 230 if (tmp.st_nlink != stat->nlink) in cp_old_stat() 232 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat() 233 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat() [all …]
|
D | filesystems.c | 109 struct file_system_type ** tmp; in unregister_filesystem() local 112 tmp = &file_systems; in unregister_filesystem() 113 while (*tmp) { in unregister_filesystem() 114 if (fs == *tmp) { in unregister_filesystem() 115 *tmp = fs->next; in unregister_filesystem() 121 tmp = &(*tmp)->next; in unregister_filesystem() 133 struct file_system_type * tmp; in fs_index() local 144 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index() 145 if (strcmp(tmp->name, name->name) == 0) { in fs_index() 157 struct file_system_type * tmp; in fs_name() local [all …]
|
D | statfs.c | 248 struct ustat tmp; in SYSCALL_DEFINE2() local 254 memset(&tmp,0,sizeof(struct ustat)); in SYSCALL_DEFINE2() 255 tmp.f_tfree = sbuf.f_bfree; in SYSCALL_DEFINE2() 256 tmp.f_tinode = sbuf.f_ffree; in SYSCALL_DEFINE2() 258 return copy_to_user(ubuf, &tmp, sizeof(struct ustat)) ? -EFAULT : 0; in SYSCALL_DEFINE2() 302 struct kstatfs tmp; in COMPAT_SYSCALL_DEFINE2() local 303 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2() 305 error = put_compat_statfs(buf, &tmp); in COMPAT_SYSCALL_DEFINE2() 311 struct kstatfs tmp; in COMPAT_SYSCALL_DEFINE2() local 312 int error = fd_statfs(fd, &tmp); in COMPAT_SYSCALL_DEFINE2() [all …]
|
/fs/affs/ |
D | file.c | 66 u32 lc_shift, lc_mask, tmp, off; in affs_grow_extcache() local 70 tmp = (AFFS_I(inode)->i_extcnt / AFFS_LC_SIZE) >> lc_shift; in affs_grow_extcache() 71 for (; tmp; tmp >>= 1) in affs_grow_extcache() 122 u32 blocknr, tmp; in affs_alloc_extblock() local 142 tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_alloc_extblock() 143 if (tmp) in affs_alloc_extblock() 144 affs_warning(sb, "alloc_ext", "previous extension set (%x)", tmp); in affs_alloc_extblock() 146 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock() 176 u32 tmp, idx; in affs_get_extblock_slow() local 242 tmp = ext; in affs_get_extblock_slow() [all …]
|
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() 79 tmp = be32_to_cpu(*(__be32 *)bh->b_data); in affs_free_block() 80 *(__be32 *)bh->b_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() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_bit.c | 40 uint tmp; in xfs_contig_bits() local 48 tmp = *p++; in xfs_contig_bits() 50 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits() 51 if (tmp != ~0U) in xfs_contig_bits() 57 if ((tmp = *p++) != ~0U) in xfs_contig_bits() 64 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 79 uint tmp; in xfs_next_bit() local 88 tmp = *p++; in xfs_next_bit() 90 tmp &= (~0U << start_bit); in xfs_next_bit() 91 if (tmp != 0U) in xfs_next_bit() [all …]
|
D | xfs_refcount.c | 338 struct xfs_refcount_irec rcext, tmp; in xfs_refcount_split_extent() local 361 tmp = rcext; in xfs_refcount_split_extent() 362 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 363 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent() 364 error = xfs_refcount_update(cur, &tmp); in xfs_refcount_split_extent() 369 tmp = rcext; in xfs_refcount_split_extent() 370 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent() 371 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent() 576 struct xfs_refcount_irec tmp; in xfs_refcount_find_left_extents() local 587 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents() [all …]
|
D | xfs_attr_leaf.c | 1271 int tmp; in xfs_attr3_leaf_add() local 1294 tmp = entsize; in xfs_attr3_leaf_add() 1296 tmp += sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_add() 1297 if (ichdr.freemap[i].size >= tmp) { in xfs_attr3_leaf_add() 1298 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, i); in xfs_attr3_leaf_add() 1323 tmp = -ENOSPC; in xfs_attr3_leaf_add() 1327 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, 0); in xfs_attr3_leaf_add() 1334 return tmp; in xfs_attr3_leaf_add() 1352 int tmp; in xfs_attr3_leaf_add_work() local 1366 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work() [all …]
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 190 unsigned long tmp; in o2nm_node_num_store() local 194 tmp = simple_strtoul(p, &p, 0); in o2nm_node_num_store() 198 if (tmp >= O2NM_MAX_NODES) in o2nm_node_num_store() 217 if (cluster->cl_nodes[tmp]) in o2nm_node_num_store() 223 cluster->cl_nodes[tmp] = node; in o2nm_node_num_store() 224 node->nd_num = tmp; in o2nm_node_num_store() 225 set_bit(tmp, cluster->cl_nodes_bitmap); in o2nm_node_num_store() 244 unsigned long tmp; in o2nm_node_ipv4_port_store() local 247 tmp = simple_strtoul(p, &p, 0); in o2nm_node_ipv4_port_store() 251 if (tmp == 0) in o2nm_node_ipv4_port_store() [all …]
|
/fs/hfs/ |
D | bnode.c | 151 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() 158 tmp, hfs_bnode_read_u8(node, key_off)); in hfs_bnode_dump() 159 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump() 162 int tmp; in hfs_bnode_dump() local 164 tmp = hfs_bnode_read_u8(node, key_off); in hfs_bnode_dump() 165 hfs_dbg_cont(BNODE_MOD, " (%d)", tmp); in hfs_bnode_dump() 174 struct hfs_bnode *tmp; in hfs_bnode_unlink() local 179 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink() [all …]
|
D | super.c | 228 int tmp, token; in parse_options() local 250 if (match_int(&args[0], &tmp)) { in parse_options() 254 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options() 256 pr_err("invalid uid %d\n", tmp); in parse_options() 261 if (match_int(&args[0], &tmp)) { in parse_options() 265 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options() 267 pr_err("invalid gid %d\n", tmp); in parse_options() 272 if (match_octal(&args[0], &tmp)) { in parse_options() 276 hsb->s_file_umask = (umode_t)tmp; in parse_options() 277 hsb->s_dir_umask = (umode_t)tmp; in parse_options() [all …]
|
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/ |
D | nfsroot.c | 222 char *tmp = NULL; in root_nfs_data() local 225 tmp = kzalloc(tmplen, GFP_KERNEL); in root_nfs_data() 226 if (tmp == NULL) in root_nfs_data() 228 strcpy(tmp, NFS_ROOT); in root_nfs_data() 233 if (root_nfs_parse_options(root_server_path, tmp, tmplen)) in root_nfs_data() 239 if (root_nfs_parse_options(cmdline, tmp, tmplen)) in root_nfs_data() 264 tmp, utsname()->nodename); in root_nfs_data() 275 kfree(tmp); in root_nfs_data()
|
/fs/nls/ |
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/sdcardfs/ |
D | packagelist.c | 507 unsigned int tmp; in package_details_appid_store() local 510 ret = kstrtouint(page, 10, &tmp); in package_details_appid_store() 514 ret = insert_packagelist_entry(&to_package_details(item)->name, tmp); in package_details_appid_store() 546 unsigned int tmp; in package_details_excluded_userids_store() local 549 ret = kstrtouint(page, 10, &tmp); in package_details_excluded_userids_store() 553 ret = insert_userid_exclude_entry(&to_package_details(item)->name, tmp); in package_details_excluded_userids_store() 564 unsigned int tmp; in package_details_clear_userid_store() local 567 ret = kstrtouint(page, 10, &tmp); in package_details_clear_userid_store() 570 remove_userid_exclude_entry(&to_package_details(item)->name, tmp); in package_details_clear_userid_store() 650 const char *tmp; in extension_details_make_item() local [all …]
|
D | inode.c | 562 struct inode tmp; in sdcardfs_permission() local 582 copy_attrs(&tmp, inode); in sdcardfs_permission() 583 tmp.i_uid = make_kuid(&init_user_ns, top->d_uid); in sdcardfs_permission() 584 tmp.i_gid = make_kgid(&init_user_ns, get_gid(mnt, inode->i_sb, top)); in sdcardfs_permission() 585 tmp.i_mode = (inode->i_mode & S_IFMT) in sdcardfs_permission() 588 tmp.i_sb = inode->i_sb; in sdcardfs_permission() 591 err = generic_permission(&tmp, mask); in sdcardfs_permission() 611 struct inode tmp; in sdcardfs_setattr() local 635 copy_attrs(&tmp, inode); in sdcardfs_setattr() 636 tmp.i_uid = make_kuid(&init_user_ns, top->d_uid); in sdcardfs_setattr() [all …]
|
/fs/gfs2/ |
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/hfsplus/ |
D | bnode.c | 315 int tmp; in hfs_bnode_dump() local 319 tmp = hfs_bnode_read_u16(node, key_off) + 2; in hfs_bnode_dump() 321 tmp = node->tree->max_key_len + 2; in hfs_bnode_dump() 322 hfs_dbg_cont(BNODE_MOD, " (%d", tmp); in hfs_bnode_dump() 323 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump() 326 int tmp; in hfs_bnode_dump() local 328 tmp = hfs_bnode_read_u16(node, key_off); in hfs_bnode_dump() 329 hfs_dbg_cont(BNODE_MOD, " (%d)", tmp); in hfs_bnode_dump() 338 struct hfs_bnode *tmp; in hfs_bnode_unlink() local 343 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink() [all …]
|
D | options.c | 104 int tmp, token; in hfsplus_parse_options() local 128 if (match_octal(&args[0], &tmp)) { in hfsplus_parse_options() 132 sbi->umask = (umode_t)tmp; in hfsplus_parse_options() 135 if (match_int(&args[0], &tmp)) { in hfsplus_parse_options() 139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options() 146 if (match_int(&args[0], &tmp)) { in hfsplus_parse_options() 150 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
|
/fs/omfs/ |
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/nfsd/ |
D | nfsxdr.c | 76 u32 tmp, tmp1; in decode_sattr() local 84 if ((tmp = ntohl(*p++)) != (u32)-1 && tmp != 0xffff) { in decode_sattr() 86 iap->ia_mode = tmp; in decode_sattr() 88 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr() 89 iap->ia_uid = make_kuid(userns, tmp); in decode_sattr() 93 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr() 94 iap->ia_gid = make_kgid(userns, tmp); in decode_sattr() 98 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr() 100 iap->ia_size = tmp; in decode_sattr() 102 tmp = ntohl(*p++); tmp1 = ntohl(*p++); in decode_sattr() [all …]
|
/fs/autofs/ |
D | waitq.c | 182 struct dentry *tmp; in autofs_getpath() local 195 for (tmp = dentry ; tmp != root ; tmp = tmp->d_parent) in autofs_getpath() 196 len += tmp->d_name.len + 1; in autofs_getpath() 210 for (tmp = dentry->d_parent; tmp != root ; tmp = tmp->d_parent) { in autofs_getpath() 212 p -= tmp->d_name.len; in autofs_getpath() 213 strncpy(p, tmp->d_name.name, tmp->d_name.len); in autofs_getpath()
|
/fs/ufs/ |
D | util.h | 92 __fs64 tmp; in ufs_get_fs_qbmask() local 97 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_sun.fs_qbmask[0]; in ufs_get_fs_qbmask() 98 ((__fs32 *)&tmp)[1] = usb3->fs_un2.fs_sun.fs_qbmask[1]; in ufs_get_fs_qbmask() 101 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_sunx86.fs_qbmask[0]; in ufs_get_fs_qbmask() 102 ((__fs32 *)&tmp)[1] = usb3->fs_un2.fs_sunx86.fs_qbmask[1]; in ufs_get_fs_qbmask() 105 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_44.fs_qbmask[0]; in ufs_get_fs_qbmask() 106 ((__fs32 *)&tmp)[1] = usb3->fs_un2.fs_44.fs_qbmask[1]; in ufs_get_fs_qbmask() 110 return fs64_to_cpu(sb, tmp); in ufs_get_fs_qbmask() 116 __fs64 tmp; in ufs_get_fs_qfmask() local 121 ((__fs32 *)&tmp)[0] = usb3->fs_un2.fs_sun.fs_qfmask[0]; in ufs_get_fs_qfmask() [all …]
|
D | inode.c | 231 u64 tmp; in ufs_extend_tail() local 239 tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p), in ufs_extend_tail() 242 return tmp != 0; in ufs_extend_tail() 262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local 272 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_inode_getfrag() 273 if (tmp) in ufs_inode_getfrag() 289 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), in ufs_inode_getfrag() 292 if (!tmp) { in ufs_inode_getfrag() 304 return tmp + uspi->s_sbbase; in ufs_inode_getfrag() 341 u64 tmp = 0, goal; in ufs_inode_getblock() local [all …]
|
/fs/udf/ |
D | dir.c | 54 struct buffer_head *tmp, *bha[16]; in udf_readdir() local 110 tmp = udf_tgetblk(sb, block); in udf_readdir() 111 if (tmp && !buffer_uptodate(tmp) && !buffer_locked(tmp)) in udf_readdir() 112 bha[num++] = tmp; in udf_readdir() 114 brelse(tmp); in udf_readdir()
|