Lines Matching refs:res

304 	int res;  in hfsplus_link()  local
318 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link()
321 if (!res) in hfsplus_link()
323 if (res != -EEXIST) in hfsplus_link()
329 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link()
331 if (res) in hfsplus_link()
337 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link()
338 if (res) in hfsplus_link()
350 return res; in hfsplus_link()
360 int res; in hfsplus_unlink() local
371 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_unlink()
374 if (!res) { in hfsplus_unlink()
380 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink()
381 if (res) in hfsplus_unlink()
392 res = hfsplus_delete_cat(inode->i_ino, in hfsplus_unlink()
395 if (!res) in hfsplus_unlink()
407 return res; in hfsplus_unlink()
414 int res; in hfsplus_rmdir() local
420 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir()
421 if (res) in hfsplus_rmdir()
429 return res; in hfsplus_rmdir()
437 int res = -ENOMEM; in hfsplus_symlink() local
444 res = page_symlink(inode, symname, strlen(symname) + 1); in hfsplus_symlink()
445 if (res) in hfsplus_symlink()
448 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink()
449 if (res) in hfsplus_symlink()
452 res = hfsplus_init_inode_security(inode, dir, &dentry->d_name); in hfsplus_symlink()
453 if (res == -EOPNOTSUPP) in hfsplus_symlink()
454 res = 0; /* Operation is not supported. */ in hfsplus_symlink()
455 else if (res) { in hfsplus_symlink()
471 return res; in hfsplus_symlink()
479 int res = -ENOMEM; in hfsplus_mknod() local
489 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_mknod()
490 if (res) in hfsplus_mknod()
493 res = hfsplus_init_inode_security(inode, dir, &dentry->d_name); in hfsplus_mknod()
494 if (res == -EOPNOTSUPP) in hfsplus_mknod()
495 res = 0; /* Operation is not supported. */ in hfsplus_mknod()
496 else if (res) { in hfsplus_mknod()
512 return res; in hfsplus_mknod()
529 int res; in hfsplus_rename() local
534 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename()
536 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename()
537 if (res) in hfsplus_rename()
538 return res; in hfsplus_rename()
541 res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata, in hfsplus_rename()
544 if (!res) in hfsplus_rename()
546 return res; in hfsplus_rename()