Lines Matching refs:res
277 int res; in hfsplus_link() local
291 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link()
294 if (!res) in hfsplus_link()
296 if (res != -EEXIST) in hfsplus_link()
302 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link()
304 if (res) in hfsplus_link()
310 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link()
311 if (res) in hfsplus_link()
323 return res; in hfsplus_link()
333 int res; in hfsplus_unlink() local
344 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_unlink()
347 if (!res) { in hfsplus_unlink()
353 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink()
354 if (res) in hfsplus_unlink()
365 res = hfsplus_delete_cat(inode->i_ino, in hfsplus_unlink()
368 if (!res) in hfsplus_unlink()
380 return res; in hfsplus_unlink()
387 int res; in hfsplus_rmdir() local
393 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir()
394 if (res) in hfsplus_rmdir()
402 return res; in hfsplus_rmdir()
410 int res = -ENOSPC; in hfsplus_symlink() local
417 res = page_symlink(inode, symname, strlen(symname) + 1); in hfsplus_symlink()
418 if (res) in hfsplus_symlink()
421 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink()
422 if (res) in hfsplus_symlink()
425 res = hfsplus_init_inode_security(inode, dir, &dentry->d_name); in hfsplus_symlink()
426 if (res == -EOPNOTSUPP) in hfsplus_symlink()
427 res = 0; /* Operation is not supported. */ in hfsplus_symlink()
428 else if (res) { in hfsplus_symlink()
444 return res; in hfsplus_symlink()
452 int res = -ENOSPC; in hfsplus_mknod() local
462 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_mknod()
463 if (res) in hfsplus_mknod()
466 res = hfsplus_init_inode_security(inode, dir, &dentry->d_name); in hfsplus_mknod()
467 if (res == -EOPNOTSUPP) in hfsplus_mknod()
468 res = 0; /* Operation is not supported. */ in hfsplus_mknod()
469 else if (res) { in hfsplus_mknod()
485 return res; in hfsplus_mknod()
502 int res; in hfsplus_rename() local
507 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename()
509 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename()
510 if (res) in hfsplus_rename()
511 return res; in hfsplus_rename()
514 res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata, in hfsplus_rename()
517 if (!res) in hfsplus_rename()
519 return res; in hfsplus_rename()