• Home
  • Raw
  • Download

Lines Matching refs:err

139 	int err;  in read_name()  local
145 err = stat_file(name, &i_ino, &i_mode, &i_nlink, &ino->i_uid, in read_name()
148 if (err) in read_name()
149 return err; in read_name()
210 int err = 0; in hostfs_read_inode() local
219 err = -ENOMEM; in hostfs_read_inode()
227 err = PTR_ERR(name); in hostfs_read_inode()
232 err = read_name(ino, name); in hostfs_read_inode()
235 return err; in hostfs_read_inode()
264 int err; in hostfs_statfs() local
271 err = do_statfs(HOSTFS_I(dentry->d_sb->s_root->d_inode)->host_filename, in hostfs_statfs()
275 if (err) in hostfs_statfs()
276 return err; in hostfs_statfs()
445 int err; in hostfs_writepage() local
453 err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); in hostfs_writepage()
454 if (err != count) { in hostfs_writepage()
464 err = 0; in hostfs_writepage()
470 return err; in hostfs_writepage()
477 int err = 0; in hostfs_readpage() local
481 err = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, in hostfs_readpage()
483 if (err < 0) in hostfs_readpage()
486 memset(&buffer[err], 0, PAGE_CACHE_SIZE - err); in hostfs_readpage()
491 err = 0; in hostfs_readpage()
495 return err; in hostfs_readpage()
517 int err; in hostfs_write_end() local
520 err = write_file(FILE_HOSTFS_I(file)->fd, &pos, buffer + from, copied); in hostfs_write_end()
523 if (!PageUptodate(page) && err == PAGE_CACHE_SIZE) in hostfs_write_end()
530 if (err > 0 && (pos > inode->i_size)) in hostfs_write_end()
535 return err; in hostfs_write_end()
549 int type, err = -ENOMEM; in init_inode() local
564 err = 0; in init_inode()
593 return err; in init_inode()
646 int err; in hostfs_lookup() local
650 err = PTR_ERR(inode); in hostfs_lookup()
654 err = init_inode(inode, dentry); in hostfs_lookup()
655 if (err) in hostfs_lookup()
658 err = -ENOMEM; in hostfs_lookup()
663 err = read_name(inode, name); in hostfs_lookup()
665 if (err == -ENOENT) { in hostfs_lookup()
669 else if (err) in hostfs_lookup()
679 return ERR_PTR(err); in hostfs_lookup()
700 int err; in hostfs_link() local
709 err = link_file(to_name, from_name); in hostfs_link()
712 return err; in hostfs_link()
718 int err; in hostfs_unlink() local
725 err = unlink_file(file); in hostfs_unlink()
727 return err; in hostfs_unlink()
733 int err; in hostfs_symlink() local
737 err = make_symlink(file, to); in hostfs_symlink()
739 return err; in hostfs_symlink()
745 int err; in hostfs_mkdir() local
749 err = do_mkdir(file, mode); in hostfs_mkdir()
751 return err; in hostfs_mkdir()
757 int err; in hostfs_rmdir() local
761 err = do_rmdir(file); in hostfs_rmdir()
763 return err; in hostfs_rmdir()
770 int err; in hostfs_mknod() local
774 err = PTR_ERR(inode); in hostfs_mknod()
778 err = init_inode(inode, dentry); in hostfs_mknod()
779 if (err) in hostfs_mknod()
782 err = -ENOMEM; in hostfs_mknod()
788 err = do_mknod(name, mode, MAJOR(dev), MINOR(dev)); in hostfs_mknod()
789 if (err) in hostfs_mknod()
792 err = read_name(inode, name); in hostfs_mknod()
794 if (err) in hostfs_mknod()
805 return err; in hostfs_mknod()
812 int err; in hostfs_rename() local
820 err = rename_file(from_name, to_name); in hostfs_rename()
823 return err; in hostfs_rename()
829 int r = 0, w = 0, x = 0, err; in hostfs_permission() local
840 err = 0; in hostfs_permission()
842 err = access_file(name, r, w, x); in hostfs_permission()
844 if (!err) in hostfs_permission()
845 err = generic_permission(ino, desired, NULL); in hostfs_permission()
846 return err; in hostfs_permission()
853 int err; in hostfs_setattr() local
857 err = inode_change_ok(dentry->d_inode, attr); in hostfs_setattr()
858 if (err) in hostfs_setattr()
859 return err; in hostfs_setattr()
902 err = set_attr(name, &attrs, fd); in hostfs_setattr()
904 if (err) in hostfs_setattr()
905 return err; in hostfs_setattr()
940 int err; in hostfs_link_readpage() local
946 err = hostfs_do_readlink(name, buffer, PAGE_CACHE_SIZE); in hostfs_link_readpage()
948 if (err == PAGE_CACHE_SIZE) in hostfs_link_readpage()
949 err = -E2BIG; in hostfs_link_readpage()
950 else if (err > 0) { in hostfs_link_readpage()
954 err = 0; in hostfs_link_readpage()
958 return err; in hostfs_link_readpage()
969 int err; in hostfs_fill_sb_common() local
980 err = -ENOMEM; in hostfs_fill_sb_common()
990 err = PTR_ERR(root_inode); in hostfs_fill_sb_common()
994 err = init_inode(root_inode, NULL); in hostfs_fill_sb_common()
995 if (err) in hostfs_fill_sb_common()
1005 err = -ENOMEM; in hostfs_fill_sb_common()
1010 err = hostfs_read_inode(root_inode); in hostfs_fill_sb_common()
1011 if (err) { in hostfs_fill_sb_common()
1025 return err; in hostfs_fill_sb_common()