Lines Matching refs:res
242 int res; in hfsplus_create() local
248 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_create()
249 if (res) { in hfsplus_create()
253 return res; in hfsplus_create()
269 int res; in hfsplus_link() local
280 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link()
283 if (!res) in hfsplus_link()
285 if (res != -EEXIST) in hfsplus_link()
286 return res; in hfsplus_link()
291 res = hfsplus_create_cat(cnid, src_dir, &src_dentry->d_name, inode); in hfsplus_link()
292 if (res) in hfsplus_link()
294 return res; in hfsplus_link()
298 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link()
299 if (res) in hfsplus_link()
300 return res; in hfsplus_link()
320 int res; in hfsplus_unlink() local
330 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_unlink()
333 if (!res) in hfsplus_unlink()
335 return res; in hfsplus_unlink()
337 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink()
338 if (res) in hfsplus_unlink()
339 return res; in hfsplus_unlink()
349 res = hfsplus_delete_cat(inode->i_ino, in hfsplus_unlink()
352 if (!res) in hfsplus_unlink()
363 return res; in hfsplus_unlink()
369 int res; in hfsplus_mkdir() local
375 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_mkdir()
376 if (res) { in hfsplus_mkdir()
380 return res; in hfsplus_mkdir()
390 int res; in hfsplus_rmdir() local
395 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir()
396 if (res) in hfsplus_rmdir()
397 return res; in hfsplus_rmdir()
410 int res; in hfsplus_symlink() local
417 res = page_symlink(inode, symname, strlen(symname) + 1); in hfsplus_symlink()
418 if (res) { in hfsplus_symlink()
422 return res; in hfsplus_symlink()
426 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink()
428 if (!res) { in hfsplus_symlink()
433 return res; in hfsplus_symlink()
441 int res; in hfsplus_mknod() local
448 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_mknod()
449 if (res) { in hfsplus_mknod()
453 return res; in hfsplus_mknod()
465 int res; in hfsplus_rename() local
469 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename()
470 if (res) in hfsplus_rename()
471 return res; in hfsplus_rename()
474 res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata, in hfsplus_rename()
477 if (!res) in hfsplus_rename()
479 return res; in hfsplus_rename()