Searched refs:sh (Results 1 - 5 of 5) sorted by relevance
/fs/logfs/ |
H A D | super.c | 143 static void set_segment_header(struct logfs_segment_header *sh, u8 type, argument 146 sh->pad = 0; 147 sh->type = type; 148 sh->level = level; 149 sh->segno = cpu_to_be32(segno); 150 sh->ec = cpu_to_be32(ec); 151 sh->gec = cpu_to_be64(segno); 152 sh->crc = logfs_crc32(sh, LOGFS_SEGMENT_HEADERSIZE, 4); 159 struct logfs_segment_header *sh local 347 struct logfs_segment_header *sh = &ds->ds_sh; local [all...] |
H A 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; local 836 sh.pad = 0; 837 sh [all...] |
H A D | journal.c | 313 struct logfs_segment_header sh; local 319 err = wbuf_read(sb, dev_ofs(sb, segno, 0), sizeof(sh), &sh); 322 crc = logfs_crc32(&sh, sizeof(sh), 4); 323 if (crc != sh.crc) { 324 WARN_ON(sh.gec != cpu_to_be64(0xffffffffffffffffull)); 328 return be64_to_cpu(sh.gec); 392 struct logfs_segment_header sh; member in union:__anon307 403 u.sh [all...] |
H A D | gc.c | 128 struct logfs_segment_header sh; local 138 err = wbuf_read(sb, dev_ofs(sb, segno, 0), sizeof(sh), &sh); 140 gc_level = GC_LEVEL(sh.level); 141 logical_segno = be32_to_cpu(sh.segno); 142 if (sh.crc != logfs_crc32(&sh, sizeof(sh), 4)) {
|
/fs/btrfs/ |
H A D | ioctl.c | 1955 struct btrfs_ioctl_search_header sh; local 1981 if (sizeof(sh) + item_len > *buf_size) { 1992 *buf_size = sizeof(sh) + item_len; 1997 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { 2002 sh.objectid = key->objectid; 2003 sh.offset = key->offset; 2004 sh.type = key->type; 2005 sh.len = item_len; 2006 sh.transid = found_transid; 2009 if (copy_to_user(ubuf + *sk_offset, &sh, sizeo [all...] |
Completed in 45 milliseconds