• Home
  • Raw
  • Download

Lines Matching refs:error

51 	int			error = 0;  in xfs_initxattrs()  local
62 error = xfs_attr_set(&args); in xfs_initxattrs()
63 if (error < 0) in xfs_initxattrs()
66 return error; in xfs_initxattrs()
174 int error; in xfs_generic_create() local
187 error = posix_acl_create(dir, &mode, &default_acl, &acl); in xfs_generic_create()
188 if (error) in xfs_generic_create()
189 return error; in xfs_generic_create()
192 error = xfs_dentry_mode_to_name(&name, dentry, mode); in xfs_generic_create()
193 if (unlikely(error)) in xfs_generic_create()
197 error = xfs_create(mnt_userns, XFS_I(dir), &name, mode, rdev, in xfs_generic_create()
201 error = xfs_create_tmpfile(mnt_userns, XFS_I(dir), mode, &ip); in xfs_generic_create()
203 if (unlikely(error)) in xfs_generic_create()
208 error = xfs_init_security(inode, dir, &dentry->d_name); in xfs_generic_create()
209 if (unlikely(error)) in xfs_generic_create()
214 error = __xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT); in xfs_generic_create()
215 if (error) in xfs_generic_create()
219 error = __xfs_set_acl(inode, acl, ACL_TYPE_ACCESS); in xfs_generic_create()
220 if (error) in xfs_generic_create()
246 return error; in xfs_generic_create()
298 int error; in xfs_vn_lookup() local
304 error = xfs_lookup(XFS_I(dir), &name, &cip, NULL); in xfs_vn_lookup()
305 if (likely(!error)) in xfs_vn_lookup()
307 else if (likely(error == -ENOENT)) in xfs_vn_lookup()
310 inode = ERR_PTR(error); in xfs_vn_lookup()
324 int error; in xfs_vn_ci_lookup() local
330 error = xfs_lookup(XFS_I(dir), &xname, &ip, &ci_name); in xfs_vn_ci_lookup()
331 if (unlikely(error)) { in xfs_vn_ci_lookup()
332 if (unlikely(error != -ENOENT)) in xfs_vn_ci_lookup()
333 return ERR_PTR(error); in xfs_vn_ci_lookup()
362 int error; in xfs_vn_link() local
364 error = xfs_dentry_mode_to_name(&name, dentry, inode->i_mode); in xfs_vn_link()
365 if (unlikely(error)) in xfs_vn_link()
366 return error; in xfs_vn_link()
368 error = xfs_link(XFS_I(dir), XFS_I(inode), &name); in xfs_vn_link()
369 if (unlikely(error)) in xfs_vn_link()
370 return error; in xfs_vn_link()
383 int error; in xfs_vn_unlink() local
387 error = xfs_remove(XFS_I(dir), &name, XFS_I(d_inode(dentry))); in xfs_vn_unlink()
388 if (error) in xfs_vn_unlink()
389 return error; in xfs_vn_unlink()
411 int error; in xfs_vn_symlink() local
416 error = xfs_dentry_mode_to_name(&name, dentry, mode); in xfs_vn_symlink()
417 if (unlikely(error)) in xfs_vn_symlink()
420 error = xfs_symlink(mnt_userns, XFS_I(dir), &name, symname, mode, &cip); in xfs_vn_symlink()
421 if (unlikely(error)) in xfs_vn_symlink()
426 error = xfs_init_security(inode, dir, &dentry->d_name); in xfs_vn_symlink()
427 if (unlikely(error)) in xfs_vn_symlink()
441 return error; in xfs_vn_symlink()
455 int error; in xfs_vn_rename() local
466 error = xfs_dentry_mode_to_name(&oname, odentry, omode); in xfs_vn_rename()
467 if (omode && unlikely(error)) in xfs_vn_rename()
468 return error; in xfs_vn_rename()
470 error = xfs_dentry_mode_to_name(&nname, ndentry, in xfs_vn_rename()
472 if (unlikely(error)) in xfs_vn_rename()
473 return error; in xfs_vn_rename()
492 int error = -ENOMEM; in xfs_vn_get_link() local
501 error = xfs_readlink(XFS_I(d_inode(dentry)), link); in xfs_vn_get_link()
502 if (unlikely(error)) in xfs_vn_get_link()
511 return ERR_PTR(error); in xfs_vn_get_link()
649 int error; in xfs_setattr_nonsize() local
688 error = xfs_qm_vop_dqalloc(ip, uid, gid, ip->i_projid, in xfs_setattr_nonsize()
690 if (error) in xfs_setattr_nonsize()
691 return error; in xfs_setattr_nonsize()
694 error = xfs_trans_alloc_ichange(ip, udqp, gdqp, NULL, in xfs_setattr_nonsize()
696 if (error) in xfs_setattr_nonsize()
745 error = xfs_trans_commit(tp); in xfs_setattr_nonsize()
755 if (error) in xfs_setattr_nonsize()
756 return error; in xfs_setattr_nonsize()
766 error = posix_acl_chmod(mnt_userns, inode, inode->i_mode); in xfs_setattr_nonsize()
767 if (error) in xfs_setattr_nonsize()
768 return error; in xfs_setattr_nonsize()
776 return error; in xfs_setattr_nonsize()
795 int error; in xfs_setattr_size() local
825 error = xfs_qm_dqattach(ip); in xfs_setattr_size()
826 if (error) in xfs_setattr_size()
827 return error; in xfs_setattr_size()
846 error = iomap_zero_range(inode, oldsize, newsize - oldsize, in xfs_setattr_size()
855 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size()
857 if (error) in xfs_setattr_size()
858 return error; in xfs_setattr_size()
859 error = iomap_truncate_page(inode, newsize, &did_zeroing, in xfs_setattr_size()
863 if (error) in xfs_setattr_size()
864 return error; in xfs_setattr_size()
899 error = filemap_write_and_wait_range(VFS_I(ip)->i_mapping, in xfs_setattr_size()
901 if (error) in xfs_setattr_size()
902 return error; in xfs_setattr_size()
905 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp); in xfs_setattr_size()
906 if (error) in xfs_setattr_size()
907 return error; in xfs_setattr_size()
946 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, newsize); in xfs_setattr_size()
947 if (error) in xfs_setattr_size()
972 error = xfs_trans_commit(tp); in xfs_setattr_size()
976 return error; in xfs_setattr_size()
990 int error; in xfs_vn_setattr_size() local
994 error = xfs_vn_change_ok(mnt_userns, dentry, iattr); in xfs_vn_setattr_size()
995 if (error) in xfs_vn_setattr_size()
996 return error; in xfs_vn_setattr_size()
1008 int error; in xfs_vn_setattr() local
1016 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_vn_setattr()
1017 if (error) { in xfs_vn_setattr()
1019 return error; in xfs_vn_setattr()
1022 error = xfs_vn_setattr_size(mnt_userns, dentry, iattr); in xfs_vn_setattr()
1027 error = xfs_vn_change_ok(mnt_userns, dentry, iattr); in xfs_vn_setattr()
1028 if (!error) in xfs_vn_setattr()
1029 error = xfs_setattr_nonsize(mnt_userns, ip, iattr); in xfs_vn_setattr()
1032 return error; in xfs_vn_setattr()
1045 int error; in xfs_vn_update_time() local
1058 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp); in xfs_vn_update_time()
1059 if (error) in xfs_vn_update_time()
1060 return error; in xfs_vn_update_time()
1082 int error; in xfs_vn_fiemap() local
1087 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
1090 error = iomap_fiemap(inode, fieinfo, start, length, in xfs_vn_fiemap()
1095 return error; in xfs_vn_fiemap()