/fs/ |
D | stat.c | 210 struct __old_kernel_stat tmp; in cp_old_stat() local 221 memset(&tmp, 0, sizeof(struct __old_kernel_stat)); in cp_old_stat() 222 tmp.st_dev = old_encode_dev(stat->dev); in cp_old_stat() 223 tmp.st_ino = stat->ino; in cp_old_stat() 224 if (sizeof(tmp.st_ino) < sizeof(stat->ino) && tmp.st_ino != stat->ino) in cp_old_stat() 226 tmp.st_mode = stat->mode; in cp_old_stat() 227 tmp.st_nlink = stat->nlink; in cp_old_stat() 228 if (tmp.st_nlink != stat->nlink) in cp_old_stat() 230 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat() 231 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat() [all …]
|
D | filesystems.c | 105 struct file_system_type ** tmp; in unregister_filesystem() local 108 tmp = &file_systems; in unregister_filesystem() 109 while (*tmp) { in unregister_filesystem() 110 if (fs == *tmp) { in unregister_filesystem() 111 *tmp = fs->next; in unregister_filesystem() 117 tmp = &(*tmp)->next; in unregister_filesystem() 129 struct file_system_type * tmp; in fs_index() local 140 for (tmp=file_systems, index=0 ; tmp ; tmp=tmp->next, index++) { in fs_index() 141 if (strcmp(tmp->name, name->name) == 0) { in fs_index() 153 struct file_system_type * tmp; in fs_name() local [all …]
|
D | statfs.c | 234 struct ustat tmp; in SYSCALL_DEFINE2() local 240 memset(&tmp,0,sizeof(struct ustat)); in SYSCALL_DEFINE2() 241 tmp.f_tfree = sbuf.f_bfree; in SYSCALL_DEFINE2() 242 tmp.f_tinode = sbuf.f_ffree; in SYSCALL_DEFINE2() 244 return copy_to_user(ubuf, &tmp, sizeof(struct ustat)) ? -EFAULT : 0; in SYSCALL_DEFINE2() 288 struct kstatfs tmp; in COMPAT_SYSCALL_DEFINE2() local 289 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2() 291 error = put_compat_statfs(buf, &tmp); in COMPAT_SYSCALL_DEFINE2() 297 struct kstatfs tmp; in COMPAT_SYSCALL_DEFINE2() local 298 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 | 53 uint tmp; in xfs_contig_bits() local 61 tmp = *p++; in xfs_contig_bits() 63 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits() 64 if (tmp != ~0U) in xfs_contig_bits() 70 if ((tmp = *p++) != ~0U) in xfs_contig_bits() 77 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 92 uint tmp; in xfs_next_bit() local 101 tmp = *p++; in xfs_next_bit() 103 tmp &= (~0U << start_bit); in xfs_next_bit() 104 if (tmp != 0U) in xfs_next_bit() [all …]
|
D | xfs_refcount.c | 298 struct xfs_refcount_irec rcext, tmp; in xfs_refcount_split_extent() local 321 tmp = rcext; in xfs_refcount_split_extent() 322 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 323 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent() 324 error = xfs_refcount_update(cur, &tmp); in xfs_refcount_split_extent() 329 tmp = rcext; in xfs_refcount_split_extent() 330 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent() 331 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent() 538 struct xfs_refcount_irec tmp; in xfs_refcount_find_left_extents() local 549 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents() [all …]
|
D | xfs_attr_leaf.c | 1159 int tmp; in xfs_attr3_leaf_add() local 1182 tmp = entsize; in xfs_attr3_leaf_add() 1184 tmp += sizeof(xfs_attr_leaf_entry_t); in xfs_attr3_leaf_add() 1185 if (ichdr.freemap[i].size >= tmp) { in xfs_attr3_leaf_add() 1186 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, i); in xfs_attr3_leaf_add() 1211 tmp = -ENOSPC; in xfs_attr3_leaf_add() 1215 tmp = xfs_attr3_leaf_add_work(bp, &ichdr, args, 0); in xfs_attr3_leaf_add() 1222 return tmp; in xfs_attr3_leaf_add() 1240 int tmp; in xfs_attr3_leaf_add_work() local 1254 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work() [all …]
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 204 unsigned long tmp; in o2nm_node_num_store() local 208 tmp = simple_strtoul(p, &p, 0); in o2nm_node_num_store() 212 if (tmp >= O2NM_MAX_NODES) in o2nm_node_num_store() 231 if (cluster->cl_nodes[tmp]) in o2nm_node_num_store() 237 cluster->cl_nodes[tmp] = node; in o2nm_node_num_store() 238 node->nd_num = tmp; in o2nm_node_num_store() 239 set_bit(tmp, cluster->cl_nodes_bitmap); in o2nm_node_num_store() 258 unsigned long tmp; in o2nm_node_ipv4_port_store() local 261 tmp = simple_strtoul(p, &p, 0); in o2nm_node_ipv4_port_store() 265 if (tmp == 0) in o2nm_node_ipv4_port_store() [all …]
|
/fs/hfs/ |
D | bnode.c | 153 int tmp; in hfs_bnode_dump() local 156 tmp = (hfs_bnode_read_u8(node, key_off) | 1) + 1; in hfs_bnode_dump() 158 tmp = node->tree->max_key_len + 1; in hfs_bnode_dump() 160 tmp, hfs_bnode_read_u8(node, key_off)); in hfs_bnode_dump() 161 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump() 164 int tmp; in hfs_bnode_dump() local 166 tmp = hfs_bnode_read_u8(node, key_off); in hfs_bnode_dump() 167 hfs_dbg_cont(BNODE_MOD, " (%d)", tmp); in hfs_bnode_dump() 176 struct hfs_bnode *tmp; in hfs_bnode_unlink() local 181 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink() [all …]
|
D | super.c | 234 int tmp, token; in parse_options() local 256 if (match_int(&args[0], &tmp)) { in parse_options() 260 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options() 262 pr_err("invalid uid %d\n", tmp); in parse_options() 267 if (match_int(&args[0], &tmp)) { in parse_options() 271 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options() 273 pr_err("invalid gid %d\n", tmp); in parse_options() 278 if (match_octal(&args[0], &tmp)) { in parse_options() 282 hsb->s_file_umask = (umode_t)tmp; in parse_options() 283 hsb->s_dir_umask = (umode_t)tmp; in parse_options() [all …]
|
/fs/btrfs/tests/ |
D | extent-io-tests.c | 72 struct extent_io_tree tmp; in test_find_delalloc() local 90 extent_io_tree_init(&tmp, inode); in test_find_delalloc() 117 set_extent_delalloc(&tmp, 0, sectorsize - 1, NULL); in test_find_delalloc() 120 found = find_lock_delalloc_range(inode, &tmp, locked_page, &start, in test_find_delalloc() 131 unlock_extent(&tmp, start, end); in test_find_delalloc() 148 set_extent_delalloc(&tmp, sectorsize, max_bytes - 1, NULL); in test_find_delalloc() 151 found = find_lock_delalloc_range(inode, &tmp, locked_page, &start, in test_find_delalloc() 167 unlock_extent(&tmp, start, end); in test_find_delalloc() 185 found = find_lock_delalloc_range(inode, &tmp, locked_page, &start, in test_find_delalloc() 203 set_extent_delalloc(&tmp, max_bytes, total_dirty - 1, NULL); in test_find_delalloc() [all …]
|
/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/gfs2/ |
D | bmap.h | 35 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/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/afs/ |
D | vlclient.c | 65 u32 tmp; in afs_deliver_vl_get_entry_by_xxx() local 92 tmp = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx() 94 if (tmp & AFS_VLSF_RWVOL) in afs_deliver_vl_get_entry_by_xxx() 96 if (tmp & AFS_VLSF_ROVOL) in afs_deliver_vl_get_entry_by_xxx() 98 if (tmp & AFS_VLSF_BACKVOL) in afs_deliver_vl_get_entry_by_xxx() 108 tmp = ntohl(*bp++); /* flags */ in afs_deliver_vl_get_entry_by_xxx() 110 if (tmp & AFS_VLF_RWEXISTS) in afs_deliver_vl_get_entry_by_xxx() 112 if (tmp & AFS_VLF_ROEXISTS) in afs_deliver_vl_get_entry_by_xxx() 114 if (tmp & AFS_VLF_BACKEXISTS) in afs_deliver_vl_get_entry_by_xxx()
|
/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 …]
|
/fs/hfsplus/ |
D | bnode.c | 317 int tmp; in hfs_bnode_dump() local 321 tmp = hfs_bnode_read_u16(node, key_off) + 2; in hfs_bnode_dump() 323 tmp = node->tree->max_key_len + 2; in hfs_bnode_dump() 324 hfs_dbg_cont(BNODE_MOD, " (%d", tmp); in hfs_bnode_dump() 325 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump() 328 int tmp; in hfs_bnode_dump() local 330 tmp = hfs_bnode_read_u16(node, key_off); in hfs_bnode_dump() 331 hfs_dbg_cont(BNODE_MOD, " (%d)", tmp); in hfs_bnode_dump() 340 struct hfs_bnode *tmp; in hfs_bnode_unlink() local 345 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 | 92 u32 tmp, tmp1; in decode_sattr() local 100 if ((tmp = ntohl(*p++)) != (u32)-1 && tmp != 0xffff) { in decode_sattr() 102 iap->ia_mode = tmp; in decode_sattr() 104 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr() 105 iap->ia_uid = make_kuid(&init_user_ns, tmp); in decode_sattr() 109 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr() 110 iap->ia_gid = make_kgid(&init_user_ns, tmp); in decode_sattr() 114 if ((tmp = ntohl(*p++)) != (u32)-1) { in decode_sattr() 116 iap->ia_size = tmp; in decode_sattr() 118 tmp = ntohl(*p++); tmp1 = ntohl(*p++); in decode_sattr() [all …]
|
/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 | 230 u64 tmp; in ufs_extend_tail() local 238 tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p), in ufs_extend_tail() 241 return tmp != 0; in ufs_extend_tail() 261 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local 271 tmp = ufs_data_ptr_to_cpu(sb, p); in ufs_inode_getfrag() 272 if (tmp) in ufs_inode_getfrag() 288 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), in ufs_inode_getfrag() 291 if (!tmp) { in ufs_inode_getfrag() 303 return tmp + uspi->s_sbbase; in ufs_inode_getfrag() 340 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()
|
/fs/autofs4/ |
D | waitq.c | 192 struct dentry *tmp; in autofs4_getpath() local 205 for (tmp = dentry ; tmp != root ; tmp = tmp->d_parent) in autofs4_getpath() 206 len += tmp->d_name.len + 1; in autofs4_getpath() 220 for (tmp = dentry->d_parent; tmp != root ; tmp = tmp->d_parent) { in autofs4_getpath() 222 p -= tmp->d_name.len; in autofs4_getpath() 223 strncpy(p, tmp->d_name.name, tmp->d_name.len); in autofs4_getpath()
|