Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 20 of 20) 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.c337 struct dentry *temp = NULL; in ovl_create_index() local
360 temp = ovl_create_temp(indexdir, OVL_CATTR(S_IFDIR | 0)); in ovl_create_index()
361 err = PTR_ERR(temp); in ovl_create_index()
362 if (IS_ERR(temp)) in ovl_create_index()
365 err = ovl_set_upper_fh(upper, temp); in ovl_create_index()
373 err = ovl_do_rename(dir, temp, dir, index, 0); in ovl_create_index()
378 ovl_cleanup(dir, temp); in ovl_create_index()
379 dput(temp); in ovl_create_index()
439 static int ovl_copy_up_inode(struct ovl_copy_up_ctx *c, struct dentry *temp) in ovl_copy_up_inode() argument
453 upperpath.dentry = temp; in ovl_copy_up_inode()
[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()
Dsuper.c1103 struct dentry *temp; in ovl_make_workdir() local
1137 temp = ovl_do_tmpfile(ofs->workdir, S_IFREG | 0); in ovl_make_workdir()
1138 ofs->tmpfile = !IS_ERR(temp); in ovl_make_workdir()
1140 dput(temp); in ovl_make_workdir()
/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.c580 struct mid_q_entry *temp; in smb2_mid_entry_alloc() local
588 temp = mempool_alloc(cifs_mid_poolp, GFP_NOFS); in smb2_mid_entry_alloc()
589 memset(temp, 0, sizeof(struct mid_q_entry)); in smb2_mid_entry_alloc()
590 kref_init(&temp->refcount); in smb2_mid_entry_alloc()
591 temp->mid = le64_to_cpu(shdr->MessageId); in smb2_mid_entry_alloc()
592 temp->credits = credits > 0 ? credits : 1; in smb2_mid_entry_alloc()
593 temp->pid = current->pid; in smb2_mid_entry_alloc()
594 temp->command = shdr->Command; /* Always LE */ in smb2_mid_entry_alloc()
595 temp->when_alloc = jiffies; in smb2_mid_entry_alloc()
596 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.c247 char *temp = (char *) buffer; in header_assemble() local
249 memset(temp, 0, 256); /* bigger than MAX_CIFS_HDR_SIZE */ in header_assemble()
730 char *temp; in parse_dfs_referrals() local
755 temp = (char *)ref + le16_to_cpu(ref->DfsPathOffset); in parse_dfs_referrals()
756 max_len = data_end - temp; in parse_dfs_referrals()
757 node->path_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
765 temp = (char *)ref + le16_to_cpu(ref->NetworkAddressOffset); in parse_dfs_referrals()
766 max_len = data_end - temp; in parse_dfs_referrals()
767 node->node_name = cifs_strndup_from_utf16(temp, max_len, in parse_dfs_referrals()
/fs/
Dd_path.c297 char temp[64]; in dynamic_dname() local
301 sz = vsnprintf(temp, sizeof(temp), fmt, args) + 1; in dynamic_dname()
304 if (sz > sizeof(temp) || sz > buflen) in dynamic_dname()
308 return memcpy(buffer, temp, sz); in dynamic_dname()
/fs/f2fs/
Ddata.c304 fio->type, fio->temp); in __bio_alloc()
442 enum page_type type, enum temp_type temp) in __f2fs_submit_merged_write() argument
445 struct f2fs_bio_info *io = sbi->write_io[btype] + temp; in __f2fs_submit_merged_write()
465 enum temp_type temp; in __submit_merged_write_cond() local
468 for (temp = HOT; temp < NR_TEMP_TYPE; temp++) { in __submit_merged_write_cond()
471 struct f2fs_bio_info *io = sbi->write_io[btype] + temp; in __submit_merged_write_cond()
478 __f2fs_submit_merged_write(sbi, type, temp); in __submit_merged_write_cond()
584 struct page *page, enum temp_type temp) in add_bio_entry() argument
586 struct f2fs_bio_info *io = sbi->write_io[DATA] + temp; in add_bio_entry()
610 enum temp_type temp; in add_ipu_page() local
[all …]
Dsegment.c2976 enum page_type type, enum temp_type temp) in f2fs_io_type_to_rw_hint() argument
2980 if (temp == WARM) in f2fs_io_type_to_rw_hint()
2982 else if (temp == HOT) in f2fs_io_type_to_rw_hint()
2984 else if (temp == COLD) in f2fs_io_type_to_rw_hint()
2991 if (temp == WARM) in f2fs_io_type_to_rw_hint()
2993 else if (temp == HOT) in f2fs_io_type_to_rw_hint()
2995 else if (temp == COLD) in f2fs_io_type_to_rw_hint()
2998 if (temp == WARM || temp == HOT) in f2fs_io_type_to_rw_hint()
3000 else if (temp == COLD) in f2fs_io_type_to_rw_hint()
3074 fio->temp = HOT; in __get_segment_type()
[all …]
Dgc.c669 .temp = COLD, in ra_data_block()
752 .temp = COLD, in move_data_block()
947 .temp = COLD, in move_data_page()
Df2fs.h1055 enum temp_type temp; /* contains HOT/WARM/COLD */ member
3167 enum page_type type, enum temp_type temp);
/fs/xfs/libxfs/
Dxfs_bmap.c1544 xfs_filblks_t temp=0; /* value for da_new calculations */ in xfs_bmap_add_extent_delay_real() local
1758 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1759 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()
1815 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1816 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1821 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1851 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1852 da_new = XFS_FILBLKS_MIN(xfs_bmap_worst_indlen(bma->ip, temp), in xfs_bmap_add_extent_delay_real()
1855 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
[all …]
/fs/xfs/
Dxfs_bmap_util.c865 xfs_extlen_t extsz, temp; in xfs_alloc_file_space() local
912 div_u64_rem(startoffset_fsb, extsz, &temp); in xfs_alloc_file_space()
913 if (temp) in xfs_alloc_file_space()
914 e += temp; in xfs_alloc_file_space()
915 div_u64_rem(e, extsz, &temp); in xfs_alloc_file_space()
916 if (temp) in xfs_alloc_file_space()
917 e += extsz - temp; in xfs_alloc_file_space()
Dxfs_inode.c545 struct xfs_inode *temp; in xfs_lock_two_inodes() local
566 temp = ip0; in xfs_lock_two_inodes()
568 ip1 = temp; in xfs_lock_two_inodes()
3018 struct xfs_inode *temp = i_tab[j]; in xfs_sort_for_rename() local
3020 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.c2132 struct dentry *temp; in ceph_mdsc_build_path() local
2150 temp = dentry; in ceph_mdsc_build_path()
2154 spin_lock(&temp->d_lock); in ceph_mdsc_build_path()
2155 inode = d_inode(temp); in ceph_mdsc_build_path()
2158 pos, temp); in ceph_mdsc_build_path()
2159 } else if (stop_on_nosnap && inode && dentry != temp && in ceph_mdsc_build_path()
2161 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path()
2165 pos -= temp->d_name.len; in ceph_mdsc_build_path()
2167 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path()
2170 memcpy(path + pos, temp->d_name.name, temp->d_name.len); in ceph_mdsc_build_path()
[all …]
/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()