Lines Matching refs:es
38 struct expand_dir_struct *es = (struct expand_dir_struct *) priv_data; in expand_dir_proc() local
45 es->goal = *blocknr; in expand_dir_proc()
49 (EXT2FS_B2C(fs, es->goal) == EXT2FS_B2C(fs, es->goal+1))) in expand_dir_proc()
50 new_blk = es->goal+1; in expand_dir_proc()
52 es->goal &= ~EXT2FS_CLUSTER_MASK(fs); in expand_dir_proc()
53 retval = ext2fs_new_block2(fs, es->goal, 0, &new_blk); in expand_dir_proc()
55 es->err = retval; in expand_dir_proc()
58 es->newblocks++; in expand_dir_proc()
64 es->err = retval; in expand_dir_proc()
67 es->done = 1; in expand_dir_proc()
69 es->dir); in expand_dir_proc()
74 es->goal = new_blk; in expand_dir_proc()
76 es->err = retval; in expand_dir_proc()
81 if (es->done) in expand_dir_proc()
90 struct expand_dir_struct es; in ext2fs_expand_dir() local
109 es.done = 0; in ext2fs_expand_dir()
110 es.err = 0; in ext2fs_expand_dir()
111 es.goal = ext2fs_find_inode_goal(fs, dir, &inode, 0); in ext2fs_expand_dir()
112 es.newblocks = 0; in ext2fs_expand_dir()
113 es.dir = dir; in ext2fs_expand_dir()
116 0, expand_dir_proc, &es); in ext2fs_expand_dir()
120 if (es.err) in ext2fs_expand_dir()
121 return es.err; in ext2fs_expand_dir()
122 if (!es.done) in ext2fs_expand_dir()
136 ext2fs_iblk_add_blocks(fs, &inode, es.newblocks); in ext2fs_expand_dir()