Searched refs:sh (Results 1 – 5 of 5) sorted by relevance
/fs/logfs/ |
D | segment.c | 437 struct logfs_segment_header *sh) 442 err = wbuf_read(sb, ofs, sizeof(*sh), sh); 445 crc = logfs_crc32(sh, sizeof(*sh), 4); 446 if (crc != sh->crc) { 448 "got %x\n", ofs, be32_to_cpu(sh->crc), 828 struct logfs_segment_header sh; in ostore_erase_segment() local 836 sh.pad = 0; in ostore_erase_segment() 837 sh.type = SEG_OSTORE; in ostore_erase_segment() 838 sh.level = (__force u8)area->a_level; in ostore_erase_segment() 839 sh.segno = cpu_to_be32(area->a_segno); in ostore_erase_segment() [all …]
|
D | super.c | 143 static void set_segment_header(struct logfs_segment_header *sh, u8 type, in set_segment_header() argument 146 sh->pad = 0; in set_segment_header() 147 sh->type = type; in set_segment_header() 148 sh->level = level; in set_segment_header() 149 sh->segno = cpu_to_be32(segno); in set_segment_header() 150 sh->ec = cpu_to_be32(ec); in set_segment_header() 151 sh->gec = cpu_to_be64(segno); in set_segment_header() 152 sh->crc = logfs_crc32(sh, LOGFS_SEGMENT_HEADERSIZE, 4); in set_segment_header() 159 struct logfs_segment_header *sh = &ds->ds_sh; in logfs_write_ds() local 163 set_segment_header(sh, SEG_SUPER, 0, segno, ec); in logfs_write_ds() [all …]
|
D | journal.c | 313 struct logfs_segment_header sh; in read_gec() local 319 err = wbuf_read(sb, dev_ofs(sb, segno, 0), sizeof(sh), &sh); in read_gec() 322 crc = logfs_crc32(&sh, sizeof(sh), 4); in read_gec() 323 if (crc != sh.crc) { in read_gec() 324 WARN_ON(sh.gec != cpu_to_be64(0xffffffffffffffffull)); in read_gec() 328 return be64_to_cpu(sh.gec); in read_gec() 392 struct logfs_segment_header sh; in journal_erase_segment() member 403 u.sh.pad = 0; in journal_erase_segment() 404 u.sh.type = SEG_JOURNAL; in journal_erase_segment() 405 u.sh.level = 0; in journal_erase_segment() [all …]
|
D | gc.c | 128 struct logfs_segment_header sh; in logfs_gc_segment() local 138 err = wbuf_read(sb, dev_ofs(sb, segno, 0), sizeof(sh), &sh); in logfs_gc_segment() 140 gc_level = GC_LEVEL(sh.level); in logfs_gc_segment() 141 logical_segno = be32_to_cpu(sh.segno); in logfs_gc_segment() 142 if (sh.crc != logfs_crc32(&sh, sizeof(sh), 4)) { in logfs_gc_segment()
|
/fs/btrfs/ |
D | ioctl.c | 1971 struct btrfs_ioctl_search_header sh; in copy_to_sk() local 1998 if (sizeof(sh) + item_len > *buf_size) { in copy_to_sk() 2009 *buf_size = sizeof(sh) + item_len; in copy_to_sk() 2014 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { in copy_to_sk() 2019 sh.objectid = key->objectid; in copy_to_sk() 2020 sh.offset = key->offset; in copy_to_sk() 2021 sh.type = key->type; in copy_to_sk() 2022 sh.len = item_len; in copy_to_sk() 2023 sh.transid = found_transid; in copy_to_sk() 2026 if (copy_to_user(ubuf + *sk_offset, &sh, sizeof(sh))) { in copy_to_sk() [all …]
|