Lines Matching refs:m
2144 if (lfs_pair_cmp(d->m.pair, oldpair) == 0) { in lfs_dir_relocatingcommit()
2145 d->m = *dir; in lfs_dir_relocatingcommit()
2146 if (d->m.pair != pair) { in lfs_dir_relocatingcommit()
2150 d->m.pair[0] = LFS_BLOCK_NULL; in lfs_dir_relocatingcommit()
2151 d->m.pair[1] = LFS_BLOCK_NULL; in lfs_dir_relocatingcommit()
2168 while (d->id >= d->m.count && d->m.split) { in lfs_dir_relocatingcommit()
2170 d->id -= d->m.count; in lfs_dir_relocatingcommit()
2171 int err = lfs_dir_fetch(lfs, &d->m, d->m.tail); in lfs_dir_relocatingcommit()
2189 if (dir != &f->m && lfs_pair_cmp(f->m.pair, dir->pair) == 0 && in lfs_dir_orphaningcommit()
2263 if (lfs_pair_cmp(lpair, d->m.pair) == 0) { in lfs_dir_orphaningcommit()
2264 d->m.pair[0] = ldir.pair[0]; in lfs_dir_orphaningcommit()
2265 d->m.pair[1] = ldir.pair[1]; in lfs_dir_orphaningcommit()
2411 err = lfs_dir_find(lfs, &cwd.m, &path, &id); in lfs_rawmkdir()
2431 lfs_mdir_t pred = cwd.m; in lfs_rawmkdir()
2449 if (cwd.m.split) { in lfs_rawmkdir()
2482 err = lfs_dir_commit(lfs, &cwd.m, LFS_MKATTRS( in lfs_rawmkdir()
2486 {LFS_MKTAG_IF(!cwd.m.split, in lfs_rawmkdir()
2498 lfs_stag_t tag = lfs_dir_find(lfs, &dir->m, &path, NULL); in lfs_dir_rawopen()
2514 lfs_stag_t res = lfs_dir_get(lfs, &dir->m, LFS_MKTAG(0x700, 0x3ff, 0), in lfs_dir_rawopen()
2523 int err = lfs_dir_fetch(lfs, &dir->m, pair); in lfs_dir_rawopen()
2529 dir->head[0] = dir->m.pair[0]; in lfs_dir_rawopen()
2530 dir->head[1] = dir->m.pair[1]; in lfs_dir_rawopen()
2565 if (dir->id == dir->m.count) { in lfs_dir_rawread()
2566 if (!dir->m.split) { in lfs_dir_rawread()
2570 int err = lfs_dir_fetch(lfs, &dir->m, dir->m.tail); in lfs_dir_rawread()
2578 int err = lfs_dir_getinfo(lfs, &dir->m, dir->id, info); in lfs_dir_rawread()
2608 int diff = lfs_min(dir->m.count - dir->id, off); in lfs_dir_rawseek()
2613 if (dir->id == dir->m.count) { in lfs_dir_rawseek()
2614 if (!dir->m.split) { in lfs_dir_rawseek()
2618 err = lfs_dir_fetch(lfs, &dir->m, dir->m.tail); in lfs_dir_rawseek()
2637 int err = lfs_dir_fetch(lfs, &dir->m, dir->head); in lfs_dir_rawrewind()
2865 lfs_stag_t tag = lfs_dir_find(lfs, &file->m, &path, &file->id);
2894 err = lfs_dir_commit(lfs, &file->m, LFS_MKATTRS(
2922 tag = lfs_dir_get(lfs, &file->m, LFS_MKTAG(0x700, 0x3ff, 0),
2935 lfs_stag_t res = lfs_dir_get(lfs, &file->m,
2984 lfs_stag_t res = lfs_dir_get(lfs, &file->m,
3055 err = lfs_dir_getread(lfs, &file->m,
3213 !lfs_pair_isnull(file->m.pair)) {
3235 err = lfs_dir_commit(lfs, &file->m, LFS_MKATTRS(
3286 int err = lfs_dir_getread(lfs, &file->m,
3647 err = lfs_dir_fetch(lfs, &dir.m, pair);
3652 if (dir.m.count > 0 || dir.m.split) {
3685 err = lfs_fs_pred(lfs, dir.m.pair, &cwd);
3690 err = lfs_dir_drop(lfs, &cwd, &dir.m);
3759 err = lfs_dir_fetch(lfs, &prevdir.m, prevpair);
3764 if (prevdir.m.count > 0 || prevdir.m.split) {
3821 err = lfs_fs_pred(lfs, prevdir.m.pair, &newcwd);
3826 err = lfs_dir_drop(lfs, &newcwd, &prevdir.m);