Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 21 of 21) sorted by relevance

/fs/jffs2/
Dsummary.c118 struct jffs2_sum_inode_mem *temp = kmalloc(sizeof(struct jffs2_sum_inode_mem), GFP_KERNEL); in jffs2_sum_add_inode_mem() local
120 if (!temp) in jffs2_sum_add_inode_mem()
123 temp->nodetype = ri->nodetype; in jffs2_sum_add_inode_mem()
124 temp->inode = ri->ino; in jffs2_sum_add_inode_mem()
125 temp->version = ri->version; in jffs2_sum_add_inode_mem()
126 temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ in jffs2_sum_add_inode_mem()
127 temp->totlen = ri->totlen; in jffs2_sum_add_inode_mem()
128 temp->next = NULL; in jffs2_sum_add_inode_mem()
130 return jffs2_sum_add_mem(s, (union jffs2_sum_mem *)temp); in jffs2_sum_add_inode_mem()
136 struct jffs2_sum_dirent_mem *temp = in jffs2_sum_add_dirent_mem() local
[all …]
/fs/overlayfs/
Dcopy_up.c387 struct dentry *temp = NULL; in ovl_create_index() local
410 temp = ovl_create_temp(indexdir, OVL_CATTR(S_IFDIR | 0)); in ovl_create_index()
411 err = PTR_ERR(temp); in ovl_create_index()
412 if (IS_ERR(temp)) in ovl_create_index()
415 err = ovl_set_upper_fh(OVL_FS(dentry->d_sb), upper, temp); in ovl_create_index()
423 err = ovl_do_rename(dir, temp, dir, index, 0); in ovl_create_index()
428 ovl_cleanup(dir, temp); in ovl_create_index()
429 dput(temp); in ovl_create_index()
490 static int ovl_copy_up_inode(struct ovl_copy_up_ctx *c, struct dentry *temp) in ovl_copy_up_inode() argument
505 upperpath.dentry = temp; in ovl_copy_up_inode()
[all …]
Dsuper.c1215 struct dentry *temp; in ovl_check_rename_whiteout() local
1223 temp = ovl_create_temp(workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
1224 err = PTR_ERR(temp); in ovl_check_rename_whiteout()
1225 if (IS_ERR(temp)) in ovl_check_rename_whiteout()
1231 dput(temp); in ovl_check_rename_whiteout()
1236 take_dentry_name_snapshot(&name, temp); in ovl_check_rename_whiteout()
1237 err = ovl_do_rename(dir, temp, dir, dest, RENAME_WHITEOUT); in ovl_check_rename_whiteout()
1257 ovl_cleanup(dir, temp); in ovl_check_rename_whiteout()
1259 dput(temp); in ovl_check_rename_whiteout()
1311 struct dentry *temp, *workdir; in ovl_make_workdir() local
[all …]
Ddir.c47 struct dentry *temp; in ovl_lookup_temp() local
54 temp = lookup_one_len(name, workdir, strlen(name)); in ovl_lookup_temp()
55 if (!IS_ERR(temp) && temp->d_inode) { in ovl_lookup_temp()
57 dput(temp); in ovl_lookup_temp()
58 temp = ERR_PTR(-EIO); in ovl_lookup_temp()
61 return temp; in ovl_lookup_temp()
/fs/cifs/
Ddir.c94 struct dentry *temp; in build_path_from_dentry_optional_prefix() local
117 for (temp = direntry; !IS_ROOT(temp);) { in build_path_from_dentry_optional_prefix()
118 namelen += (1 + temp->d_name.len); in build_path_from_dentry_optional_prefix()
119 temp = temp->d_parent; in build_path_from_dentry_optional_prefix()
120 if (temp == NULL) { in build_path_from_dentry_optional_prefix()
133 for (temp = direntry; !IS_ROOT(temp);) { in build_path_from_dentry_optional_prefix()
134 spin_lock(&temp->d_lock); in build_path_from_dentry_optional_prefix()
135 namelen -= 1 + temp->d_name.len; in build_path_from_dentry_optional_prefix()
137 spin_unlock(&temp->d_lock); in build_path_from_dentry_optional_prefix()
141 strncpy(full_path + namelen + 1, temp->d_name.name, in build_path_from_dentry_optional_prefix()
[all …]
Dsmb2transport.c708 struct mid_q_entry *temp; in smb2_mid_entry_alloc() local
716 temp = mempool_alloc(cifs_mid_poolp, GFP_NOFS); in smb2_mid_entry_alloc()
717 memset(temp, 0, sizeof(struct mid_q_entry)); in smb2_mid_entry_alloc()
718 kref_init(&temp->refcount); in smb2_mid_entry_alloc()
719 temp->mid = le64_to_cpu(shdr->MessageId); in smb2_mid_entry_alloc()
720 temp->credits = credits > 0 ? credits : 1; in smb2_mid_entry_alloc()
721 temp->pid = current->pid; in smb2_mid_entry_alloc()
722 temp->command = shdr->Command; /* Always LE */ in smb2_mid_entry_alloc()
723 temp->when_alloc = jiffies; in smb2_mid_entry_alloc()
724 temp->server = server; in smb2_mid_entry_alloc()
[all …]
Dtransport.c56 struct mid_q_entry *temp; in AllocMidQEntry() local
63 temp = mempool_alloc(cifs_mid_poolp, GFP_NOFS); in AllocMidQEntry()
64 memset(temp, 0, sizeof(struct mid_q_entry)); in AllocMidQEntry()
65 kref_init(&temp->refcount); in AllocMidQEntry()
66 temp->mid = get_mid(smb_buffer); in AllocMidQEntry()
67 temp->pid = current->pid; in AllocMidQEntry()
68 temp->command = cpu_to_le16(smb_buffer->Command); in AllocMidQEntry()
72 temp->when_alloc = jiffies; in AllocMidQEntry()
73 temp->server = server; in AllocMidQEntry()
80 temp->creator = current; in AllocMidQEntry()
[all …]
Dmisc.c251 char *temp = (char *) buffer; in header_assemble() local
253 memset(temp, 0, 256); /* bigger than MAX_CIFS_HDR_SIZE */ in header_assemble()
727 char *temp; in parse_dfs_referrals() local
752 temp = (char *)ref + le16_to_cpu(ref->DfsPathOffset); in parse_dfs_referrals()
753 max_len = data_end - temp; in parse_dfs_referrals()
754 node->path_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
762 temp = (char *)ref + le16_to_cpu(ref->NetworkAddressOffset); in parse_dfs_referrals()
763 max_len = data_end - temp; in parse_dfs_referrals()
764 node->node_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
/fs/
Dd_path.c301 char temp[64]; in dynamic_dname() local
305 sz = vsnprintf(temp, sizeof(temp), fmt, args) + 1; in dynamic_dname()
308 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
312 return memcpy(buffer, temp, sz); in dynamic_dname()
/fs/xfs/libxfs/
Dxfs_bmap.c1506 xfs_filblks_t temp=0; /* value for da_new calculations */ in xfs_bmap_add_extent_delay_real() local
1734 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1735 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1740 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1801 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1802 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1807 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1840 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1841 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1844 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
[all …]
/fs/f2fs/
Ddata.c428 fio->type, fio->temp); in __bio_alloc()
546 if ((1 << fio->temp) & meta_flag) in __attach_io_flag()
548 if ((1 << fio->temp) & fua_flag) in __attach_io_flag()
609 enum page_type type, enum temp_type temp) in __f2fs_submit_merged_write() argument
612 struct f2fs_bio_info *io = sbi->write_io[btype] + temp; in __f2fs_submit_merged_write()
632 enum temp_type temp; in __submit_merged_write_cond() local
635 for (temp = HOT; temp < NR_TEMP_TYPE; temp++) { in __submit_merged_write_cond()
638 struct f2fs_bio_info *io = sbi->write_io[btype] + temp; in __submit_merged_write_cond()
645 __f2fs_submit_merged_write(sbi, type, temp); in __submit_merged_write_cond()
754 struct page *page, enum temp_type temp) in add_bio_entry() argument
[all …]
Dsegment.c3243 enum page_type type, enum temp_type temp) in f2fs_io_type_to_rw_hint() argument
3247 if (temp == WARM) in f2fs_io_type_to_rw_hint()
3249 else if (temp == HOT) in f2fs_io_type_to_rw_hint()
3251 else if (temp == COLD) in f2fs_io_type_to_rw_hint()
3258 if (temp == WARM) in f2fs_io_type_to_rw_hint()
3260 else if (temp == HOT) in f2fs_io_type_to_rw_hint()
3262 else if (temp == COLD) in f2fs_io_type_to_rw_hint()
3265 if (temp == WARM || temp == HOT) in f2fs_io_type_to_rw_hint()
3267 else if (temp == COLD) in f2fs_io_type_to_rw_hint()
3375 fio->temp = HOT; in __get_segment_type()
[all …]
Dgc.c1130 .temp = COLD, in ra_data_block()
1217 .temp = COLD, in move_data_block()
1415 .temp = COLD, in move_data_page()
Df2fs.h1168 enum temp_type temp; /* contains HOT/WARM/COLD */ member
3659 enum page_type type, enum temp_type temp);
/fs/xfs/
Dxfs_bmap_util.c726 xfs_extlen_t extsz, temp; in xfs_alloc_file_space() local
773 div_u64_rem(startoffset_fsb, extsz, &temp); in xfs_alloc_file_space()
774 if (temp) in xfs_alloc_file_space()
775 e += temp; in xfs_alloc_file_space()
776 div_u64_rem(e, extsz, &temp); in xfs_alloc_file_space()
777 if (temp) in xfs_alloc_file_space()
778 e += extsz - temp; in xfs_alloc_file_space()
Dxfs_inode.c551 struct xfs_inode *temp; in xfs_lock_two_inodes() local
572 temp = ip0; in xfs_lock_two_inodes()
574 ip1 = temp; in xfs_lock_two_inodes()
2976 struct xfs_inode *temp = i_tab[j]; in xfs_sort_for_rename() local
2978 i_tab[j-1] = temp; in xfs_sort_for_rename()
/fs/reiserfs/
Dbitmap.c586 int temp; in reiserfs_parse_alloc_options() local
588 temp = (value in reiserfs_parse_alloc_options()
591 if (temp <= 0 || temp > 100) { in reiserfs_parse_alloc_options()
595 100 / temp; in reiserfs_parse_alloc_options()
/fs/ceph/
Dmds_client.c2393 struct dentry *temp; in ceph_mdsc_build_path() local
2411 temp = dentry; in ceph_mdsc_build_path()
2415 spin_lock(&temp->d_lock); in ceph_mdsc_build_path()
2416 inode = d_inode(temp); in ceph_mdsc_build_path()
2419 pos, temp); in ceph_mdsc_build_path()
2420 } else if (stop_on_nosnap && inode && dentry != temp && in ceph_mdsc_build_path()
2422 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path()
2426 pos -= temp->d_name.len; in ceph_mdsc_build_path()
2428 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path()
2431 memcpy(path + pos, temp->d_name.name, temp->d_name.len); in ceph_mdsc_build_path()
[all …]
/fs/fuse/
Ddax.c1143 struct fuse_dax_mapping *dmap, *pos, *temp; in try_to_free_dmap_chunks() local
1161 list_for_each_entry_safe(pos, temp, &fcd->busy_ranges, in try_to_free_dmap_chunks()
1215 struct fuse_dax_mapping *range, *temp; in fuse_free_dax_mem_ranges() local
1218 list_for_each_entry_safe(range, temp, mem_list, list) { in fuse_free_dax_mem_ranges()
/fs/orangefs/
Ddevorangefs-req.c162 struct orangefs_kernel_op_s *op, *temp; in orangefs_devreq_read() local
192 list_for_each_entry_safe(op, temp, &orangefs_request_list, list) { in orangefs_devreq_read()
/fs/jfs/
Djfs_logmgr.c815 struct tblock *tblk, *temp; in lmPostGC() local
825 list_for_each_entry_safe(tblk, temp, &log->cqueue, cqueue) { in lmPostGC()