/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 | 763 struct gfs2_log_header *lh; in gfs2_write_log_header() local 775 lh = page_address(page); in gfs2_write_log_header() 776 clear_page(lh); in gfs2_write_log_header() 778 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header() 779 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header() 780 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header() 781 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header() 782 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header() 783 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header() 784 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 | 423 struct gfs2_log_header_host lh; in gfs2_jhead_pg_srch() local 429 if (!__get_log_header(sdp, kaddr + offset, 0, &lh)) { in gfs2_jhead_pg_srch() 430 if (lh.lh_sequence >= head->lh_sequence) in gfs2_jhead_pg_srch() 431 *head = lh; in gfs2_jhead_pg_srch()
|
D | super.c | 366 struct gfs2_log_header_host lh; in gfs2_lock_fs_check_clean() local 393 error = gfs2_find_jhead(jd, &lh, false); in gfs2_lock_fs_check_clean() 396 if (!(lh.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) { in gfs2_lock_fs_check_clean()
|
/fs/ |
D | seq_file.c | 893 struct list_head *lh; in seq_list_start() local 895 list_for_each(lh, head) in seq_list_start() 897 return lh; in seq_list_start() 914 struct list_head *lh; in seq_list_next() local 916 lh = ((struct list_head *)v)->next; in seq_list_next() 918 return lh == head ? NULL : lh; in seq_list_next()
|
D | exec.c | 93 insert ? list_add(&fmt->lh, &formats) : in __register_binfmt() 94 list_add_tail(&fmt->lh, &formats); in __register_binfmt() 103 list_del(&fmt->lh); in unregister_binfmt() 164 list_for_each_entry(fmt, &formats, lh) { in SYSCALL_DEFINE1() 1716 list_for_each_entry(fmt, &formats, lh) { in search_binary_handler()
|
/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 | 3667 struct ldtentry *lh; in ciCompare() local 3695 lh = (struct ldtentry *) & p->slot[si]; in ciCompare() 3696 si = lh->next; in ciCompare() 3697 name = lh->name; in ciCompare() 3698 namlen = lh->namlen; in ciCompare() 3839 struct ldtentry *lh; in dtGetKey() local 3850 lh = (struct ldtentry *) & p->slot[si]; in dtGetKey() 3851 si = lh->next; in dtGetKey() 3852 namlen = lh->namlen; in dtGetKey() 3853 name = lh->name; in dtGetKey() [all …]
|
/fs/proc/ |
D | inode.c | 247 list_del(&pdeo->lh); in close_pdeo() 269 pdeo = list_first_entry(&de->pde_openers, struct pde_opener, lh); in proc_entry_rundown() 547 list_add(&pdeo->lh, &pde->pde_openers); in proc_reg_open() 574 list_for_each_entry(pdeo, &pde->pde_openers, lh) { in proc_reg_release()
|
D | internal.h | 210 struct list_head lh; member
|
/fs/nfs/ |
D | dir.c | 2532 struct list_head *lh; in nfs_access_get_cached_rcu() local 2537 lh = rcu_dereference(list_tail_rcu(&nfsi->access_cache_entry_lru)); in nfs_access_get_cached_rcu() 2538 cache = list_entry(lh, struct nfs_access_entry, lru); in nfs_access_get_cached_rcu() 2539 if (lh == &nfsi->access_cache_entry_lru || in nfs_access_get_cached_rcu()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 360 ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh, in ff_layout_alloc_lseg() argument 508 mirror = ff_layout_add_mirror(lh, fls->mirror_array[i]); in ff_layout_alloc_lseg()
|