Lines Matching refs:err
80 int err = -ENODATA; in get_xa_root() local
82 err = privroot->d_inode->i_op->mkdir(privroot->d_inode, in get_xa_root()
84 if (err) { in get_xa_root()
86 xaroot = ERR_PTR(err); in get_xa_root()
121 int err; in open_xa_dir() local
126 err = in open_xa_dir()
129 if (err) { in open_xa_dir()
132 return ERR_PTR(err); in open_xa_dir()
153 int err = 0; in get_xa_file_dentry() local
171 err = -EEXIST; in get_xa_file_dentry()
180 err = xadir->d_inode->i_op->create(xadir->d_inode, xafile, in get_xa_file_dentry()
183 if (err) { in get_xa_file_dentry()
191 if (err) in get_xa_file_dentry()
192 xafile = ERR_PTR(err); in get_xa_file_dentry()
418 int err = 0; in reiserfs_xattr_set() local
439 err = PTR_ERR(dentry); in reiserfs_xattr_set()
449 err = reiserfs_xattr_del(inode, name); in reiserfs_xattr_set()
450 if (err < 0) in reiserfs_xattr_set()
462 err = notify_change(dentry, &newattrs); in reiserfs_xattr_set()
463 if (err) in reiserfs_xattr_set()
478 err = PTR_ERR(page); in reiserfs_xattr_set()
495 err = reiserfs_prepare_write(NULL, page, page_offset, in reiserfs_xattr_set()
497 if (!err) { in reiserfs_xattr_set()
500 err = reiserfs_commit_write(NULL, page, page_offset, in reiserfs_xattr_set()
509 if (err || buffer_size == 0 || !buffer) in reiserfs_xattr_set()
527 return err; in reiserfs_xattr_set()
537 ssize_t err = 0; in reiserfs_xattr_get() local
556 err = PTR_ERR(dentry); in reiserfs_xattr_get()
566 err = isize - sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_get()
571 err = -ERANGE; in reiserfs_xattr_get()
586 err = PTR_ERR(page); in reiserfs_xattr_get()
605 err = -EIO; in reiserfs_xattr_get()
617 err = isize - sizeof(struct reiserfs_xattr_header); in reiserfs_xattr_get()
624 err = -EIO; in reiserfs_xattr_get()
631 return err; in reiserfs_xattr_get()
639 int err = 0; in __reiserfs_xattr_del() local
643 err = PTR_ERR(dentry); in __reiserfs_xattr_del()
646 err = -ENODATA; in __reiserfs_xattr_del()
667 err = dir->i_op->unlink(dir, dentry); in __reiserfs_xattr_del()
668 if (!err) in __reiserfs_xattr_del()
675 return err; in __reiserfs_xattr_del()
681 int err; in reiserfs_xattr_del() local
685 err = PTR_ERR(dir); in reiserfs_xattr_del()
689 err = __reiserfs_xattr_del(dir, name, strlen(name)); in reiserfs_xattr_del()
692 if (!err) { in reiserfs_xattr_del()
698 return err; in reiserfs_xattr_del()
719 int err = 0; in reiserfs_delete_xattrs() local
731 err = PTR_ERR(dir); in reiserfs_delete_xattrs()
739 err = xattr_readdir(dir->d_inode, reiserfs_delete_xattrs_filler, dir); in reiserfs_delete_xattrs()
740 if (err) { in reiserfs_delete_xattrs()
749 err = vfs_rmdir(root->d_inode, dir); in reiserfs_delete_xattrs()
762 if (!err) in reiserfs_delete_xattrs()
765 return err; in reiserfs_delete_xattrs()
782 int err = 0; in reiserfs_chown_xattrs_filler() local
793 err = notify_change(xafile, attrs); in reiserfs_chown_xattrs_filler()
796 return err; in reiserfs_chown_xattrs_filler()
802 int err = 0; in reiserfs_chown_xattrs() local
817 err = PTR_ERR(dir); in reiserfs_chown_xattrs()
831 err = xattr_readdir(dir->d_inode, reiserfs_chown_xattrs_filler, &buf); in reiserfs_chown_xattrs()
832 if (err) { in reiserfs_chown_xattrs()
837 err = notify_change(dir, attrs); in reiserfs_chown_xattrs()
845 return err; in reiserfs_chown_xattrs()
859 int err; in reiserfs_getxattr() local
867 err = xah->get(dentry->d_inode, name, buffer, size); in reiserfs_getxattr()
870 return err; in reiserfs_getxattr()
883 int err; in reiserfs_setxattr() local
896 err = xah->set(dentry->d_inode, name, value, size, flags); in reiserfs_setxattr()
902 return err; in reiserfs_setxattr()
912 int err; in reiserfs_removexattr() local
924 err = xah->del(dentry->d_inode, name); in reiserfs_removexattr()
925 if (err) in reiserfs_removexattr()
929 err = reiserfs_xattr_del(dentry->d_inode, name); in reiserfs_removexattr()
937 return err; in reiserfs_removexattr()
990 int err = 0; in reiserfs_listxattr() local
1005 err = PTR_ERR(dir); in reiserfs_listxattr()
1006 if (err == -ENODATA) in reiserfs_listxattr()
1007 err = 0; /* Not an error if there aren't any xattrs */ in reiserfs_listxattr()
1018 err = xattr_readdir(dir->d_inode, reiserfs_listxattr_filler, &buf); in reiserfs_listxattr()
1019 if (err) in reiserfs_listxattr()
1023 err = -ERANGE; in reiserfs_listxattr()
1025 err = buf.r_pos; in reiserfs_listxattr()
1032 return err; in reiserfs_listxattr()
1074 int err = 0; in reiserfs_xattr_register_handlers() local
1101 err = xah->init(); in reiserfs_xattr_register_handlers()
1102 if (err) { in reiserfs_xattr_register_handlers()
1110 if (err) in reiserfs_xattr_register_handlers()
1114 return err; in reiserfs_xattr_register_handlers()
1148 int err = 0; in reiserfs_xattr_init() local
1159 err = -EOPNOTSUPP; in reiserfs_xattr_init()
1177 err = inode->i_op->mkdir(inode, dentry, 0700); in reiserfs_xattr_init()
1179 if (err) { in reiserfs_xattr_init()
1196 err = PTR_ERR(dentry); in reiserfs_xattr_init()
1198 if (!err && dentry) { in reiserfs_xattr_init()
1208 err = -EOPNOTSUPP; in reiserfs_xattr_init()
1215 if (err) { in reiserfs_xattr_init()
1226 return err; in reiserfs_xattr_init()