Home
last modified time | relevance | path

Searched refs:lh (Results 1 – 13 of 13) sorted by relevance

/fs/gfs2/
Drecovery.c120 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 …]
Dlog.c828 struct gfs2_log_header *lh; in gfs2_write_log_header() local
840 lh = page_address(page); in gfs2_write_log_header()
841 clear_page(lh); in gfs2_write_log_header()
843 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
844 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
845 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
846 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
847 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
848 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
849 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
[all …]
Drecovery.h30 const struct gfs2_log_header *lh, unsigned int blkno,
Dlops.c430 struct gfs2_log_header_host lh; in gfs2_jhead_pg_srch() local
436 if (!__get_log_header(sdp, kaddr + offset, 0, &lh)) { in gfs2_jhead_pg_srch()
437 if (lh.lh_sequence >= head->lh_sequence) in gfs2_jhead_pg_srch()
438 *head = lh; in gfs2_jhead_pg_srch()
Dsuper.c334 struct gfs2_log_header_host lh; in gfs2_lock_fs_check_clean() local
361 error = gfs2_find_jhead(jd, &lh, false); in gfs2_lock_fs_check_clean()
364 if (!(lh.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) { in gfs2_lock_fs_check_clean()
/fs/
Dseq_file.c921 struct list_head *lh; in seq_list_start() local
923 list_for_each(lh, head) in seq_list_start()
925 return lh; in seq_list_start()
942 struct list_head *lh; in seq_list_next() local
944 lh = ((struct list_head *)v)->next; in seq_list_next()
946 return lh == head ? NULL : lh; in seq_list_next()
952 struct list_head *lh; in seq_list_start_rcu() local
954 list_for_each_rcu(lh, head) in seq_list_start_rcu()
956 return lh; in seq_list_start_rcu()
974 struct list_head *lh; in seq_list_next_rcu() local
[all …]
Dexec.c93 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()
1745 list_for_each_entry(fmt, &formats, lh) { in search_binary_handler()
/fs/coda/
Dpsdev.c97 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/
Djfs_dtree.c3667 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/
Dinode.c247 list_del(&pdeo->lh); in close_pdeo()
269 pdeo = list_first_entry(&de->pde_openers, struct pde_opener, lh); in proc_entry_rundown()
536 list_add(&pdeo->lh, &pde->pde_openers); in proc_reg_open()
563 list_for_each_entry(pdeo, &pde->pde_openers, lh) { in proc_reg_release()
Dinternal.h211 struct list_head lh; member
/fs/nfs/
Ddir.c2748 struct list_head *lh; in nfs_access_get_cached_rcu() local
2753 lh = rcu_dereference(list_tail_rcu(&nfsi->access_cache_entry_lru)); in nfs_access_get_cached_rcu()
2754 cache = list_entry(lh, struct nfs_access_entry, lru); in nfs_access_get_cached_rcu()
2755 if (lh == &nfsi->access_cache_entry_lru || in nfs_access_get_cached_rcu()
/fs/nfs/flexfilelayout/
Dflexfilelayout.c360 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()