Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 22 of 22) 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.c486 struct dentry *temp = NULL; in ovl_create_index() local
509 temp = ovl_create_temp(ofs, indexdir, OVL_CATTR(S_IFDIR | 0)); in ovl_create_index()
510 err = PTR_ERR(temp); in ovl_create_index()
511 if (IS_ERR(temp)) in ovl_create_index()
514 err = ovl_set_upper_fh(ofs, upper, temp); in ovl_create_index()
522 err = ovl_do_rename(ofs, dir, temp, dir, index, 0); in ovl_create_index()
527 ovl_cleanup(ofs, dir, temp); in ovl_create_index()
528 dput(temp); in ovl_create_index()
591 static int ovl_copy_up_data(struct ovl_copy_up_ctx *c, const struct path *temp) in ovl_copy_up_data() argument
600 new_file = ovl_path_open(temp, O_LARGEFILE | O_WRONLY); in ovl_copy_up_data()
[all …]
Dsuper.c609 struct dentry *temp; in ovl_check_rename_whiteout() local
617 temp = ovl_create_temp(ofs, workdir, OVL_CATTR(S_IFREG | 0)); in ovl_check_rename_whiteout()
618 err = PTR_ERR(temp); in ovl_check_rename_whiteout()
619 if (IS_ERR(temp)) in ovl_check_rename_whiteout()
625 dput(temp); in ovl_check_rename_whiteout()
630 take_dentry_name_snapshot(&name, temp); in ovl_check_rename_whiteout()
631 err = ovl_do_rename(ofs, dir, temp, dir, dest, RENAME_WHITEOUT); in ovl_check_rename_whiteout()
651 ovl_cleanup(ofs, dir, temp); in ovl_check_rename_whiteout()
653 dput(temp); in ovl_check_rename_whiteout()
Ddir.c47 struct dentry *temp; in ovl_lookup_temp() local
54 temp = ovl_lookup_upper(ofs, 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/smb/client/
Dsmb2transport.c739 struct mid_q_entry *temp; in smb2_mid_entry_alloc() local
747 temp = mempool_alloc(cifs_mid_poolp, GFP_NOFS); in smb2_mid_entry_alloc()
748 memset(temp, 0, sizeof(struct mid_q_entry)); in smb2_mid_entry_alloc()
749 kref_init(&temp->refcount); in smb2_mid_entry_alloc()
750 temp->mid = le64_to_cpu(shdr->MessageId); in smb2_mid_entry_alloc()
751 temp->credits = credits > 0 ? credits : 1; in smb2_mid_entry_alloc()
752 temp->pid = current->pid; in smb2_mid_entry_alloc()
753 temp->command = shdr->Command; /* Always LE */ in smb2_mid_entry_alloc()
754 temp->when_alloc = jiffies; in smb2_mid_entry_alloc()
755 temp->server = server; in smb2_mid_entry_alloc()
[all …]
Dtransport.c46 struct mid_q_entry *temp; in alloc_mid() local
53 temp = mempool_alloc(cifs_mid_poolp, GFP_NOFS); in alloc_mid()
54 memset(temp, 0, sizeof(struct mid_q_entry)); in alloc_mid()
55 kref_init(&temp->refcount); in alloc_mid()
56 temp->mid = get_mid(smb_buffer); in alloc_mid()
57 temp->pid = current->pid; in alloc_mid()
58 temp->command = cpu_to_le16(smb_buffer->Command); in alloc_mid()
62 temp->when_alloc = jiffies; in alloc_mid()
63 temp->server = server; in alloc_mid()
70 temp->creator = current; in alloc_mid()
[all …]
Dmisc.c260 char *temp = (char *) buffer; in header_assemble() local
262 memset(temp, 0, 256); /* bigger than MAX_CIFS_HDR_SIZE */ in header_assemble()
940 char *temp; in parse_dfs_referrals() local
965 temp = (char *)ref + le16_to_cpu(ref->DfsPathOffset); in parse_dfs_referrals()
966 max_len = data_end - temp; in parse_dfs_referrals()
967 node->path_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
975 temp = (char *)ref + le16_to_cpu(ref->NetworkAddressOffset); in parse_dfs_referrals()
976 max_len = data_end - temp; in parse_dfs_referrals()
977 node->node_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
/fs/
Dd_path.c304 char temp[64]; in dynamic_dname() local
308 sz = vsnprintf(temp, sizeof(temp), fmt, args) + 1; in dynamic_dname()
311 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
315 return memcpy(buffer, temp, sz); in dynamic_dname()
/fs/xfs/scrub/
Dxfarray.c149 void *temp = xfarray_scratch(array); in xfarray_is_unset() local
155 error = xfile_obj_load(array->xfile, temp, array->obj_size, pos); in xfarray_is_unset()
156 if (!error && xfarray_element_is_null(array, temp)) in xfarray_is_unset()
171 void *temp = xfarray_scratch(array); in xfarray_unset() local
186 memset(temp, 0, array->obj_size); in xfarray_unset()
187 error = xfile_obj_store(array->xfile, temp, array->obj_size, pos); in xfarray_unset()
239 void *temp = xfarray_scratch(array); in xfarray_store_anywhere() local
248 error = xfile_obj_load(array->xfile, temp, array->obj_size, in xfarray_store_anywhere()
250 if (error || !xfarray_element_is_null(array, temp)) in xfarray_store_anywhere()
/fs/xfs/libxfs/
Dxfs_bmap.c1426 xfs_filblks_t temp=0; /* value for da_new calculations */ in xfs_bmap_add_extent_delay_real() local
1654 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1655 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1660 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1721 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1722 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1727 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1760 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1761 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1764 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
[all …]
/fs/f2fs/
Ddata.c445 if (BIT(fio->temp) & meta_flag) in f2fs_io_flags()
447 if (BIT(fio->temp) & fua_flag) in f2fs_io_flags()
471 fio->type, fio->temp); in __bio_alloc()
626 enum page_type type, enum temp_type temp) in __f2fs_submit_merged_write() argument
629 struct f2fs_bio_info *io = sbi->write_io[btype] + temp; in __f2fs_submit_merged_write()
652 enum temp_type temp; in __submit_merged_write_cond() local
655 for (temp = HOT; temp < NR_TEMP_TYPE; temp++) { in __submit_merged_write_cond()
658 struct f2fs_bio_info *io = sbi->write_io[btype] + temp; in __submit_merged_write_cond()
665 __f2fs_submit_merged_write(sbi, type, temp); in __submit_merged_write_cond()
764 struct page *page, enum temp_type temp) in add_bio_entry() argument
[all …]
Dgc.c1182 .temp = COLD, in ra_data_block()
1270 .temp = COLD, in move_data_block()
1451 .temp = COLD, in move_data_page()
Dsegment.c3423 enum page_type type, enum temp_type temp) in f2fs_io_type_to_rw_hint() argument
3427 switch (temp) { in f2fs_io_type_to_rw_hint()
3438 switch (temp) { in f2fs_io_type_to_rw_hint()
3564 fio->temp = f2fs_get_segment_temp(type); in __get_segment_type()
3704 io = sbi->write_io[fio->type] + fio->temp; in f2fs_allocate_data_block()
3784 .temp = HOT, in f2fs_do_write_meta_page()
Df2fs.h1202 enum temp_type temp; /* contains HOT/WARM/COLD */ member
3755 enum page_type type, enum temp_type temp);
Dfile.c4778 enum temp_type temp = f2fs_get_segment_temp(seg_type); in f2fs_dio_write_submit_io() local
4780 bio->bi_write_hint = f2fs_io_type_to_rw_hint(sbi, DATA, temp); in f2fs_dio_write_submit_io()
/fs/xfs/
Dxfs_bmap_util.c784 xfs_extlen_t extsz, temp; in xfs_alloc_file_space() local
829 div_u64_rem(startoffset_fsb, extsz, &temp); in xfs_alloc_file_space()
830 if (temp) in xfs_alloc_file_space()
831 e += temp; in xfs_alloc_file_space()
832 div_u64_rem(e, extsz, &temp); in xfs_alloc_file_space()
833 if (temp) in xfs_alloc_file_space()
834 e += extsz - temp; in xfs_alloc_file_space()
Dxfs_inode.c2671 struct xfs_inode *temp = i_tab[j]; in xfs_sort_for_rename() local
2673 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/fuse/
Ddax.c1137 struct fuse_dax_mapping *dmap, *pos, *temp; in try_to_free_dmap_chunks() local
1155 list_for_each_entry_safe(pos, temp, &fcd->busy_ranges, in try_to_free_dmap_chunks()
1209 struct fuse_dax_mapping *range, *temp; in fuse_free_dax_mem_ranges() local
1212 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/btrfs/
Dspace-info.c624 u64 temp = min(delalloc_bytes, to_reclaim) >> PAGE_SHIFT; in shrink_delalloc() local
625 long nr_pages = min_t(u64, temp, LONG_MAX); in shrink_delalloc()
/fs/jfs/
Djfs_logmgr.c807 struct tblock *tblk, *temp; in lmPostGC() local
817 list_for_each_entry_safe(tblk, temp, &log->cqueue, cqueue) { in lmPostGC()