/fs/gfs2/ |
D | recovery.c | 120 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument 125 if (lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in __get_log_header() 126 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) || in __get_log_header() 127 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header() 130 hash = crc32(~0, lh, LH_V1_SIZE - 4); in __get_log_header() 133 if (be32_to_cpu(lh->lh_hash) != hash) in __get_log_header() 136 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in __get_log_header() 139 if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc)) in __get_log_header() 142 head->lh_sequence = be64_to_cpu(lh->lh_sequence); in __get_log_header() 143 head->lh_flags = be32_to_cpu(lh->lh_flags); in __get_log_header() [all …]
|
D | log.c | 691 struct gfs2_log_header *lh; in gfs2_write_log_header() local 699 lh = page_address(page); in gfs2_write_log_header() 700 clear_page(lh); in gfs2_write_log_header() 702 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header() 703 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header() 704 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header() 705 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header() 706 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header() 707 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header() 708 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header() [all …]
|
D | recovery.h | 30 const struct gfs2_log_header *lh, unsigned int blkno,
|
D | lops.c | 417 struct gfs2_log_header_host uninitialized_var(lh); in gfs2_jhead_pg_srch() 423 if (!__get_log_header(sdp, kaddr + offset, 0, &lh)) { in gfs2_jhead_pg_srch() 424 if (lh.lh_sequence > head->lh_sequence) in gfs2_jhead_pg_srch() 425 *head = lh; in gfs2_jhead_pg_srch()
|
D | super.c | 409 struct gfs2_log_header_host lh; in gfs2_lock_fs_check_clean() local 434 error = gfs2_find_jhead(jd, &lh, false); in gfs2_lock_fs_check_clean() 437 if (!(lh.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) { in gfs2_lock_fs_check_clean()
|
/fs/ |
D | seq_file.c | 898 struct list_head *lh; in seq_list_start() local 900 list_for_each(lh, head) in seq_list_start() 902 return lh; in seq_list_start() 919 struct list_head *lh; in seq_list_next() local 921 lh = ((struct list_head *)v)->next; in seq_list_next() 923 return lh == head ? NULL : lh; in seq_list_next()
|
D | exec.c | 87 insert ? list_add(&fmt->lh, &formats) : in __register_binfmt() 88 list_add_tail(&fmt->lh, &formats); in __register_binfmt() 97 list_del(&fmt->lh); in unregister_binfmt() 156 list_for_each_entry(fmt, &formats, lh) { in SYSCALL_DEFINE1() 1653 list_for_each_entry(fmt, &formats, lh) { in search_binary_handler()
|
/fs/proc/ |
D | inode.c | 169 list_del(&pdeo->lh); in close_pdeo() 191 pdeo = list_first_entry(&de->pde_openers, struct pde_opener, lh); in proc_entry_rundown() 374 list_add(&pdeo->lh, &pde->pde_openers); in proc_reg_open() 390 list_for_each_entry(pdeo, &pde->pde_openers, lh) { in proc_reg_release()
|
D | internal.h | 201 struct list_head lh; member
|
/fs/coda/ |
D | psdev.c | 97 struct list_head *lh; in coda_psdev_write() local 152 list_for_each(lh, &vcp->vc_processing) { in coda_psdev_write() 153 tmp = list_entry(lh, struct upc_req , uc_chain); in coda_psdev_write()
|
/fs/jfs/ |
D | jfs_dtree.c | 3662 struct ldtentry *lh; in ciCompare() local 3690 lh = (struct ldtentry *) & p->slot[si]; in ciCompare() 3691 si = lh->next; in ciCompare() 3692 name = lh->name; in ciCompare() 3693 namlen = lh->namlen; in ciCompare() 3834 struct ldtentry *lh; in dtGetKey() local 3845 lh = (struct ldtentry *) & p->slot[si]; in dtGetKey() 3846 si = lh->next; in dtGetKey() 3847 namlen = lh->namlen; in dtGetKey() 3848 name = lh->name; in dtGetKey() [all …]
|
/fs/nfs/ |
D | dir.c | 2348 struct list_head *lh; in nfs_access_get_cached_rcu() local 2353 lh = rcu_dereference(nfsi->access_cache_entry_lru.prev); in nfs_access_get_cached_rcu() 2354 cache = list_entry(lh, struct nfs_access_entry, lru); in nfs_access_get_cached_rcu() 2355 if (lh == &nfsi->access_cache_entry_lru || in nfs_access_get_cached_rcu()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 364 ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh, in ff_layout_alloc_lseg() argument 515 mirror = ff_layout_add_mirror(lh, fls->mirror_array[i]); in ff_layout_alloc_lseg()
|