/fs/btrfs/ |
D | extent_map.c | 150 struct rb_node *prev = NULL; in __tree_search() local 157 prev = n; in __tree_search() 169 orig_prev = prev; in __tree_search() 170 while (prev && offset >= extent_map_end(prev_entry)) { in __tree_search() 171 prev = rb_next(prev); in __tree_search() 172 prev_entry = rb_entry(prev, struct extent_map, rb_node); in __tree_search() 174 *prev_ret = prev; in __tree_search() 175 prev = orig_prev; in __tree_search() 179 prev_entry = rb_entry(prev, struct extent_map, rb_node); in __tree_search() 180 while (prev && offset < prev_entry->start) { in __tree_search() [all …]
|
D | ordered-data.c | 65 struct rb_node *prev = NULL; in __tree_search() local 72 prev = n; in __tree_search() 85 while (prev && file_offset >= entry_end(prev_entry)) { in __tree_search() 86 test = rb_next(prev); in __tree_search() 94 prev = test; in __tree_search() 96 if (prev) in __tree_search() 97 prev_entry = rb_entry(prev, struct btrfs_ordered_extent, in __tree_search() 99 while (prev && file_offset < entry_end(prev_entry)) { in __tree_search() 100 test = rb_prev(prev); in __tree_search() 105 prev = test; in __tree_search() [all …]
|
/fs/jffs2/ |
D | nodelist.c | 28 struct jffs2_full_dirent **prev = list; in jffs2_add_fd_to_list() local 32 while ((*prev) && (*prev)->nhash <= new->nhash) { in jffs2_add_fd_to_list() 33 if ((*prev)->nhash == new->nhash && !strcmp((*prev)->name, new->name)) { in jffs2_add_fd_to_list() 35 if (new->version < (*prev)->version) { in jffs2_add_fd_to_list() 37 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list() 42 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list() 43 new->next = (*prev)->next; in jffs2_add_fd_to_list() 46 if ((*prev)->raw) in jffs2_add_fd_to_list() 47 jffs2_mark_node_obsolete(c, ((*prev)->raw)); in jffs2_add_fd_to_list() 48 jffs2_free_full_dirent(*prev); in jffs2_add_fd_to_list() [all …]
|
D | erase.c | 212 struct jffs2_raw_node_ref **prev; in jffs2_remove_node_refs_from_ino_list() local 214 prev = &ref->next_in_ino; in jffs2_remove_node_refs_from_ino_list() 218 if (!(*prev)->next_in_ino) { in jffs2_remove_node_refs_from_ino_list() 222 ic = (struct jffs2_inode_cache *)(*prev); in jffs2_remove_node_refs_from_ino_list() 223 prev = &ic->nodes; in jffs2_remove_node_refs_from_ino_list() 227 if (SECTOR_ADDR((*prev)->flash_offset) == jeb->offset) { in jffs2_remove_node_refs_from_ino_list() 231 this = *prev; in jffs2_remove_node_refs_from_ino_list() 232 *prev = this->next_in_ino; in jffs2_remove_node_refs_from_ino_list() 241 prev = &((*prev)->next_in_ino); in jffs2_remove_node_refs_from_ino_list()
|
/fs/iomap/ |
D | fiemap.c | 42 struct fiemap_extent_info *fi, struct iomap *prev) in iomap_fiemap_iter() argument 49 ret = iomap_to_fiemap(fi, prev, 0); in iomap_fiemap_iter() 50 *prev = iter->iomap; in iomap_fiemap_iter() 70 struct iomap prev = { in iomap_fiemap() local 80 iter.processed = iomap_fiemap_iter(&iter, fi, &prev); in iomap_fiemap() 82 if (prev.type != IOMAP_HOLE) { in iomap_fiemap() 83 ret = iomap_to_fiemap(fi, &prev, FIEMAP_EXTENT_LAST); in iomap_fiemap()
|
/fs/xfs/ |
D | xfs_bio_io.c | 40 struct bio *prev = bio; in xfs_rw_bdev() local 43 bio_copy_dev(bio, prev); in xfs_rw_bdev() 44 bio->bi_iter.bi_sector = bio_end_sector(prev); in xfs_rw_bdev() 45 bio->bi_opf = prev->bi_opf; in xfs_rw_bdev() 46 bio_chain(prev, bio); in xfs_rw_bdev() 48 submit_bio(prev); in xfs_rw_bdev()
|
/fs/notify/dnotify/ |
D | dnotify.c | 79 struct dnotify_struct **prev; in dnotify_handle_event() local 90 prev = &dn_mark->dn; in dnotify_handle_event() 91 while ((dn = *prev) != NULL) { in dnotify_handle_event() 93 prev = &dn->dn_next; in dnotify_handle_event() 99 prev = &dn->dn_next; in dnotify_handle_event() 101 *prev = dn->dn_next; in dnotify_handle_event() 140 struct dnotify_struct **prev; in dnotify_flush() local 156 prev = &dn_mark->dn; in dnotify_flush() 157 while ((dn = *prev) != NULL) { in dnotify_flush() 159 *prev = dn->dn_next; in dnotify_flush() [all …]
|
/fs/nfs/ |
D | pagelist.c | 369 nfs_page_group_init(struct nfs_page *req, struct nfs_page *prev) in nfs_page_group_init() argument 372 WARN_ON_ONCE(prev == req); in nfs_page_group_init() 374 if (!prev) { in nfs_page_group_init() 380 WARN_ON_ONCE(prev->wb_this_page != prev->wb_head); in nfs_page_group_init() 381 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &prev->wb_head->wb_flags)); in nfs_page_group_init() 382 req->wb_head = prev->wb_head; in nfs_page_group_init() 383 req->wb_this_page = prev->wb_this_page; in nfs_page_group_init() 384 prev->wb_this_page = req; in nfs_page_group_init() 393 if (test_bit(PG_INODE_REF, &prev->wb_head->wb_flags)) { in nfs_page_group_init() 636 struct nfs_page *prev, struct nfs_page *req) in nfs_generic_pg_test() argument [all …]
|
D | nfs4client.c | 529 struct nfs_client **prev, struct nfs_net *nn) in nfs4_match_client() argument 547 nfs_put_client(*prev); in nfs4_match_client() 548 *prev = pos; in nfs4_match_client() 590 struct nfs_client *pos, *prev = NULL; in nfs40_walk_client_list() local 603 status = nfs4_match_client(pos, new, &prev, nn); in nfs40_walk_client_list() 627 nfs_put_client(prev); in nfs40_walk_client_list() 628 prev = pos; in nfs40_walk_client_list() 639 prev = NULL; in nfs40_walk_client_list() 660 nfs_put_client(prev); in nfs40_walk_client_list() 757 struct nfs_client *pos, *prev = NULL; in nfs41_walk_client_list() local [all …]
|
/fs/xfs/libxfs/ |
D | xfs_iext_tree.c | 124 struct xfs_iext_leaf *prev; member 268 if (ifp->if_height > 1 && cur->leaf->prev) { in xfs_iext_prev() 269 cur->leaf = cur->leaf->prev; in xfs_iext_prev() 405 struct xfs_iext_leaf *prev = ifp->if_u1.if_root; in xfs_iext_grow() local 407 node->keys[0] = xfs_iext_leaf_key(prev, 0); in xfs_iext_grow() 408 node->ptrs[0] = prev; in xfs_iext_grow() 410 struct xfs_iext_node *prev = ifp->if_u1.if_root; in xfs_iext_grow() local 414 node->keys[0] = prev->keys[0]; in xfs_iext_grow() 415 node->ptrs[0] = prev; in xfs_iext_grow() 572 leaf->next->prev = new; in xfs_iext_split_leaf() [all …]
|
/fs/gfs2/ |
D | xattr.c | 86 struct gfs2_ea_header *prev, void *private); 92 struct gfs2_ea_header *ea, *prev = NULL; in ea_foreach_i() local 98 for (ea = GFS2_EA_BH2FIRST(bh);; prev = ea, ea = GFS2_EA2NEXT(ea)) { in ea_foreach_i() 106 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i() 176 struct gfs2_ea_header *ea, struct gfs2_ea_header *prev, in ea_find_i() argument 191 el->el_prev = prev; in ea_find_i() 231 struct gfs2_ea_header *prev, void *private) in ea_dealloc_unstuffed() argument 301 if (prev && !leave) { in ea_dealloc_unstuffed() 304 len = GFS2_EA_REC_LEN(prev) + GFS2_EA_REC_LEN(ea); in ea_dealloc_unstuffed() 305 prev->ea_rec_len = cpu_to_be32(len); in ea_dealloc_unstuffed() [all …]
|
D | dir.c | 559 struct gfs2_dirent *dent, *prev; in gfs2_dirent_scan() local 569 prev = NULL; in gfs2_dirent_scan() 581 prev = dent; in gfs2_dirent_scan() 595 return prev ? prev : dent; in gfs2_dirent_scan() 669 struct gfs2_dirent *prev, struct gfs2_dirent *cur) in dirent_del() argument 684 if (!prev) { in dirent_del() 692 prev_rec_len = be16_to_cpu(prev->de_rec_len); in dirent_del() 695 if ((char *)prev + prev_rec_len != (char *)cur) in dirent_del() 701 prev->de_rec_len = cpu_to_be16(prev_rec_len); in dirent_del() 1003 struct gfs2_dirent *dent = NULL, *prev = NULL, *next = NULL, *new; in dir_split_leaf() local [all …]
|
/fs/ |
D | readdir.c | 225 struct linux_dirent __user *dirent, *prev; in filldir() local 248 prev = (void __user *) dirent - prev_reclen; in filldir() 249 if (!user_write_access_begin(prev, reclen + prev_reclen)) in filldir() 253 unsafe_put_user(offset, &prev->d_off, efault_end); in filldir() 313 struct linux_dirent64 __user *dirent, *prev; in filldir64() local 330 prev = (void __user *)dirent - prev_reclen; in filldir64() 331 if (!user_write_access_begin(prev, reclen + prev_reclen)) in filldir64() 335 unsafe_put_user(offset, &prev->d_off, efault_end); in filldir64() 477 struct compat_linux_dirent __user *dirent, *prev; in compat_filldir() local 500 prev = (void __user *) dirent - prev_reclen; in compat_filldir() [all …]
|
D | userfaultfd.c | 884 struct vm_area_struct *vma, *prev; in userfaultfd_release() local 903 prev = NULL; in userfaultfd_release() 912 prev = vma; in userfaultfd_release() 916 prev = vma_merge(mm, prev, vma->vm_start, vma->vm_end, in userfaultfd_release() 921 if (prev) in userfaultfd_release() 922 vma = prev; in userfaultfd_release() 924 prev = vma; in userfaultfd_release() 1316 struct vm_area_struct *vma, *prev, *cur; in userfaultfd_register() local 1366 vma = find_vma_prev(mm, start, &prev); in userfaultfd_register() 1454 prev = vma; in userfaultfd_register() [all …]
|
/fs/nilfs2/ |
D | alloc.c | 202 struct nilfs_bh_assoc *prev, in nilfs_palloc_get_block() argument 208 if (prev->bh && blkoff == prev->blkoff && in nilfs_palloc_get_block() 209 likely(buffer_uptodate(prev->bh))) { in nilfs_palloc_get_block() 210 get_bh(prev->bh); in nilfs_palloc_get_block() 211 *bhp = prev->bh; in nilfs_palloc_get_block() 224 brelse(prev->bh); in nilfs_palloc_get_block() 226 prev->bh = *bhp; in nilfs_palloc_get_block() 227 prev->blkoff = blkoff; in nilfs_palloc_get_block() 241 struct nilfs_bh_assoc *prev, in nilfs_palloc_delete_block() argument 245 if (prev->bh && blkoff == prev->blkoff) { in nilfs_palloc_delete_block() [all …]
|
D | cpfile.c | 623 __u64 curr, prev; in nilfs_cpfile_set_snapshot() local 659 prev = le64_to_cpu(list->ssl_prev); in nilfs_cpfile_set_snapshot() 660 while (prev > cno) { in nilfs_cpfile_set_snapshot() 661 prev_blkoff = nilfs_cpfile_get_blkoff(cpfile, prev); in nilfs_cpfile_set_snapshot() 662 curr = prev; in nilfs_cpfile_set_snapshot() 676 prev = le64_to_cpu(list->ssl_prev); in nilfs_cpfile_set_snapshot() 680 if (prev != 0) { in nilfs_cpfile_set_snapshot() 681 ret = nilfs_cpfile_get_checkpoint_block(cpfile, prev, 0, in nilfs_cpfile_set_snapshot() 699 cp->cp_snapshot_list.ssl_prev = cpu_to_le64(prev); in nilfs_cpfile_set_snapshot() 705 cpfile, prev, prev_bh, kaddr); in nilfs_cpfile_set_snapshot() [all …]
|
D | segbuf.h | 88 #define NILFS_PREV_SEGBUF(segbuf) NILFS_LIST_SEGBUF((segbuf)->sb_list.prev) 89 #define NILFS_LAST_SEGBUF(head) NILFS_LIST_SEGBUF((head)->prev) 111 struct nilfs_segment_buffer *prev);
|
/fs/hfs/ |
D | bnode.c | 158 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump() 193 if (node->prev) { in hfs_bnode_unlink() 194 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink() 208 tmp->prev = node->prev; in hfs_bnode_unlink() 209 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink() 210 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink() 213 tree->leaf_tail = node->prev; in hfs_bnode_unlink() 216 if (!node->prev && !node->next) { in hfs_bnode_unlink() 355 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find()
|
D | brec.c | 248 new_node->prev = node->this; in hfs_bnode_split() 318 node_desc.prev = cpu_to_be32(new_node->prev); in hfs_bnode_split() 334 next_node->prev = new_node->this; in hfs_bnode_split() 336 node_desc.prev = cpu_to_be32(next_node->prev); in hfs_bnode_split() 488 new_node->prev = 0; in hfs_btree_inc_height() 492 node_desc.prev = cpu_to_be32(new_node->prev); in hfs_btree_inc_height()
|
/fs/crypto/ |
D | hkdf.c | 126 const u8 *prev = NULL; in fscrypt_hkdf_expand() local 144 if (prev) { in fscrypt_hkdf_expand() 145 err = crypto_shash_update(desc, prev, HKDF_HASHLEN); in fscrypt_hkdf_expand() 171 prev = &okm[i]; in fscrypt_hkdf_expand()
|
/fs/hfsplus/ |
D | bnode.c | 307 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump() 342 if (node->prev) { in hfs_bnode_unlink() 343 tmp = hfs_bnode_find(tree, node->prev); in hfs_bnode_unlink() 358 tmp->prev = node->prev; in hfs_bnode_unlink() 359 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink() 361 offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink() 364 tree->leaf_tail = node->prev; in hfs_bnode_unlink() 367 if (!node->prev && !node->next) in hfs_bnode_unlink() 507 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find()
|
D | brec.c | 252 new_node->prev = node->this; in hfs_bnode_split() 322 node_desc.prev = cpu_to_be32(new_node->prev); in hfs_bnode_split() 338 next_node->prev = new_node->this; in hfs_bnode_split() 340 node_desc.prev = cpu_to_be32(next_node->prev); in hfs_bnode_split() 492 new_node->prev = 0; in hfs_btree_inc_height() 496 node_desc.prev = cpu_to_be32(new_node->prev); in hfs_btree_inc_height()
|
/fs/autofs/ |
D | expire.c | 97 static struct dentry *get_next_positive_subdir(struct dentry *prev, in get_next_positive_subdir() argument 105 q = positive_after(root, prev); in get_next_positive_subdir() 108 dput(prev); in get_next_positive_subdir() 115 static struct dentry *get_next_positive_dentry(struct dentry *prev, in get_next_positive_dentry() argument 119 struct dentry *p = prev, *ret = NULL, *d = NULL; in get_next_positive_dentry() 121 if (prev == NULL) in get_next_positive_dentry() 140 dput(prev); in get_next_positive_dentry()
|
/fs/omfs/ |
D | dir.c | 165 u64 block, prev; in omfs_delete_entry() local 177 bh2 = omfs_scan_list(dir, block, name, namelen, &prev); in omfs_delete_entry() 187 if (prev != ~0) { in omfs_delete_entry() 190 bh = omfs_bread(dir->i_sb, prev); in omfs_delete_entry() 201 if (prev != ~0) { in omfs_delete_entry() 202 dirty = omfs_iget(dir->i_sb, prev); in omfs_delete_entry()
|
/fs/ext4/ |
D | fsmap.c | 376 struct ext4_fsmap *prev = NULL; in ext4_getfsmap_merge_fixed_metadata() local 380 if (!prev) { in ext4_getfsmap_merge_fixed_metadata() 381 prev = p; in ext4_getfsmap_merge_fixed_metadata() 385 if (prev->fmr_owner == p->fmr_owner && in ext4_getfsmap_merge_fixed_metadata() 386 prev->fmr_physical + prev->fmr_length == p->fmr_physical) { in ext4_getfsmap_merge_fixed_metadata() 387 prev->fmr_length += p->fmr_length; in ext4_getfsmap_merge_fixed_metadata() 391 prev = p; in ext4_getfsmap_merge_fixed_metadata()
|