Lines Matching defs:ofs
119 u64 ofs;
133 ofs = dev_ofs(sb, area->a_segno, area->a_written_bytes);
135 return logfs_buf_recover(area, ofs, a + 1, super->s_writesize);
137 return logfs_buf_recover(area, ofs, NULL, 0);
159 static int __read_je_header(struct super_block *sb, u64 ofs,
169 err = wbuf_read(sb, ofs, sizeof(*jh), jh);
184 static int __read_je_payload(struct super_block *sb, u64 ofs,
191 err = wbuf_read(sb, ofs + sizeof(*jh), len, jh + 1);
206 static int __read_je(struct super_block *sb, u64 ofs,
211 err = __read_je_header(sb, ofs, jh);
214 return __read_je_payload(sb, ofs, jh);
217 static int read_je(struct super_block *sb, u64 ofs)
225 err = __read_je(sb, ofs, jh);
259 u64 ofs, seg_ofs = dev_ofs(sb, segno, 0);
266 ofs = seg_ofs + h_ofs;
267 err = __read_je_header(sb, ofs, jh);
272 err = __read_je_payload(sb, ofs, jh);
287 ofs = seg_ofs + last_ofs;
288 log_journal("Read commit from %llx\n", ofs);
289 err = __read_je(sb, ofs, jh);
389 u64 ofs;
408 ofs = dev_ofs(sb, area->a_segno, 0);
410 logfs_buf_write(area, ofs, &u, sizeof(u));
552 u64 ofs;
557 ofs = dev_ofs(sb, area->a_segno,
559 index = ofs >> PAGE_SHIFT;
560 page_ofs = ofs & (PAGE_SIZE - 1);
627 s32 ofs;
634 ofs = area->a_used_bytes;
639 *bytes = area->a_used_bytes - ofs;
642 return dev_ofs(area->a_sb, area->a_segno, ofs);
653 s64 ofs;
659 ofs = logfs_get_free_bytes(area, &len, must_pad);
660 if (ofs < 0)
661 return ofs;
662 logfs_buf_write(area, ofs, super->s_compressed_je, len);
664 super->s_je_array[super->s_no_je++] = cpu_to_be64(ofs);