Lines Matching refs:ls
39 struct link_struct *ls = (struct link_struct *) priv_data; in link_proc() local
44 if (ls->done) in link_proc()
47 rec_len = EXT2_DIR_REC_LEN(ls->namelen); in link_proc()
49 ls->err = ext2fs_get_rec_len(ls->fs, dirent, &curr_rec_len); in link_proc()
50 if (ls->err) in link_proc()
62 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent); in link_proc()
63 if (ls->err) in link_proc()
78 ls->err = ext2fs_set_rec_len(ls->fs, min_rec_len, dirent); in link_proc()
79 if (ls->err) in link_proc()
85 ls->err = ext2fs_set_rec_len(ls->fs, rec_len, next); in link_proc()
86 if (ls->err) in link_proc()
97 dirent->inode = ls->inode; in link_proc()
98 dirent->name_len = ls->namelen; in link_proc()
99 strncpy(dirent->name, ls->name, ls->namelen); in link_proc()
100 if (ls->sb->s_feature_incompat & EXT2_FEATURE_INCOMPAT_FILETYPE) in link_proc()
101 dirent->name_len |= (ls->flags & 0x7) << 8; in link_proc()
103 ls->done++; in link_proc()
118 struct link_struct ls; in ext2fs_link() local
126 ls.fs = fs; in ext2fs_link()
127 ls.name = name; in ext2fs_link()
128 ls.namelen = name ? strlen(name) : 0; in ext2fs_link()
129 ls.inode = ino; in ext2fs_link()
130 ls.flags = flags; in ext2fs_link()
131 ls.done = 0; in ext2fs_link()
132 ls.sb = fs->super; in ext2fs_link()
133 ls.blocksize = fs->blocksize; in ext2fs_link()
134 ls.err = 0; in ext2fs_link()
137 0, link_proc, &ls); in ext2fs_link()
140 if (ls.err) in ext2fs_link()
141 return ls.err; in ext2fs_link()
143 if (!ls.done) in ext2fs_link()