Lines Matching refs:err
20 int err = sysv_add_link(dentry, inode); in add_nondir() local
21 if (!err) { in add_nondir()
27 return err; in add_nondir()
67 int err; in sysv_mknod() local
73 err = PTR_ERR(inode); in sysv_mknod()
78 err = add_nondir(dentry, inode); in sysv_mknod()
80 return err; in sysv_mknod()
91 int err = -ENAMETOOLONG; in sysv_symlink() local
99 err = PTR_ERR(inode); in sysv_symlink()
104 err = page_symlink(inode, symname, l); in sysv_symlink()
105 if (err) in sysv_symlink()
109 err = add_nondir(dentry, inode); in sysv_symlink()
111 return err; in sysv_symlink()
137 int err = -EMLINK; in sysv_mkdir() local
144 err = PTR_ERR(inode); in sysv_mkdir()
152 err = sysv_make_empty(inode, dir); in sysv_mkdir()
153 if (err) in sysv_mkdir()
156 err = sysv_add_link(dentry, inode); in sysv_mkdir()
157 if (err) in sysv_mkdir()
162 return err; in sysv_mkdir()
178 int err = -ENOENT; in sysv_unlink() local
184 err = sysv_delete_entry (de, page); in sysv_unlink()
185 if (err) in sysv_unlink()
191 return err; in sysv_unlink()
197 int err = -ENOTEMPTY; in sysv_rmdir() local
200 err = sysv_unlink(dir, dentry); in sysv_rmdir()
201 if (!err) { in sysv_rmdir()
207 return err; in sysv_rmdir()
223 int err = -ENOENT; in sysv_rename() local
230 err = -EIO; in sysv_rename()
240 err = -ENOTEMPTY; in sysv_rename()
244 err = -ENOENT; in sysv_rename()
256 err = -EMLINK; in sysv_rename()
261 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
262 if (err) { in sysv_rename()
288 return err; in sysv_rename()