Lines Matching refs:state
390 // operations on global state
443 // operations on forward-CRCs used to track erased state
618 // traversals in order to avoid invalid lookahead state
1306 // check for an fcrc matching the next prog's erased state, if
1809 // steal state
1904 // save some state in case block is bad
1931 // setup commit state
2183 int state = 0;
2211 state = LFS_OK_DROPPED;
2292 state = lfs_dir_splittingcompact(lfs, dir, attrs, attrcount,
2294 if (state < 0) {
2295 return state;
2345 return state;
2373 int state = lfs_dir_relocatingcommit(lfs, &ldir, dir->pair,
2375 if (state < 0) {
2376 return state;
2390 if (state == LFS_OK_DROPPED) {
2391 // steal state
2401 state = lfs_dir_relocatingcommit(lfs, &pdir, lpair, LFS_MKATTRS(
2406 if (state < 0) {
2407 return state;
2415 while (state == LFS_OK_RELOCATED) {
2419 state = 0;
2472 state = lfs_dir_relocatingcommit(lfs, &pdir, ppair, LFS_MKATTRS(
2478 if (state < 0) {
2479 return state;
2482 if (state == LFS_OK_RELOCATED) {
2523 state = lfs_dir_relocatingcommit(lfs, &pdir, lpair, LFS_MKATTRS(
2530 if (state < 0) {
2531 return state;
3252 // copy over new state of file
4218 // setup default state
4888 lfs_stag_t state = lfs_dir_get(lfs, &parent,
4890 if (state < 0) {
4891 return state;
4915 state = lfs_dir_orphaningcommit(lfs, &pdir, LFS_MKATTRS(
4921 if (state < 0) {
4922 return state;
4926 if (state == LFS_OK_ORPHANED) {
4943 // steal state
4951 int state = lfs_dir_orphaningcommit(lfs, &pdir, LFS_MKATTRS(
4955 if (state < 0) {
4956 return state;
4960 if (state == LFS_OK_ORPHANED) {