• Home
  • Raw
  • Download

Lines Matching refs:err

68 	int err;  in validate_inode()  local
97 err = dbg_check_dir_size(c, inode); in validate_inode()
98 return err; in validate_inode()
103 int err; in ubifs_iget() local
121 err = -ENOMEM; in ubifs_iget()
127 err = ubifs_tnc_lookup(c, &key, ino); in ubifs_iget()
128 if (err) in ubifs_iget()
155 err = validate_inode(c, inode); in ubifs_iget()
156 if (err) in ubifs_iget()
170 err = -ENOMEM; in ubifs_iget()
176 err = 10; in ubifs_iget()
184 err = 11; in ubifs_iget()
191 err = 12; in ubifs_iget()
196 err = -ENOMEM; in ubifs_iget()
210 err = -ENOMEM; in ubifs_iget()
220 err = 13; in ubifs_iget()
233 err = 14; in ubifs_iget()
238 err = 15; in ubifs_iget()
248 ubifs_err("inode %lu validation failed, error %d", inode->i_ino, err); in ubifs_iget()
251 err = -EINVAL; in ubifs_iget()
255 ubifs_err("failed to read inode %lu, error %d", inode->i_ino, err); in ubifs_iget()
257 return ERR_PTR(err); in ubifs_iget()
288 int err = 0; in ubifs_write_inode() local
316 err = ubifs_jnl_write_inode(c, inode); in ubifs_write_inode()
317 if (err) in ubifs_write_inode()
319 inode->i_ino, err); in ubifs_write_inode()
325 return err; in ubifs_write_inode()
330 int err; in ubifs_delete_inode() local
351 err = ubifs_jnl_delete_inode(c, inode); in ubifs_delete_inode()
352 if (err) in ubifs_delete_inode()
358 inode->i_ino, err); in ubifs_delete_inode()
433 int i, err; in ubifs_sync_fs() local
469 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_sync_fs()
470 if (err) in ubifs_sync_fs()
471 return err; in ubifs_sync_fs()
474 err = ubifs_run_commit(c); in ubifs_sync_fs()
475 if (err) in ubifs_sync_fs()
476 return err; in ubifs_sync_fs()
628 int tmp, err; in init_constants_sb() local
699 err = ubifs_calc_lpt_geom(c); in init_constants_sb()
700 if (err) in init_constants_sb()
701 return err; in init_constants_sb()
748 int err; in take_gc_lnum() local
756 err = ubifs_change_one_lp(c, c->gc_lnum, c->leb_size, 0, in take_gc_lnum()
758 return err; in take_gc_lnum()
770 int i, err; in alloc_wbufs() local
780 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); in alloc_wbufs()
781 if (err) in alloc_wbufs()
782 return err; in alloc_wbufs()
882 int lnum, err; in check_volume_empty() local
886 err = ubi_is_mapped(c->ubi, lnum); in check_volume_empty()
887 if (unlikely(err < 0)) in check_volume_empty()
888 return err; in check_volume_empty()
889 if (err == 1) { in check_volume_empty()
1109 int err, mounted_read_only = (sb->s_flags & MS_RDONLY); in mount_ubifs() local
1113 err = init_constants_early(c); in mount_ubifs()
1114 if (err) in mount_ubifs()
1115 return err; in mount_ubifs()
1117 err = ubifs_debugging_init(c); in mount_ubifs()
1118 if (err) in mount_ubifs()
1119 return err; in mount_ubifs()
1121 err = check_volume_empty(c); in mount_ubifs()
1122 if (err) in mount_ubifs()
1132 err = -EROFS; in mount_ubifs()
1138 err = -EROFS; in mount_ubifs()
1147 err = -ENOMEM; in mount_ubifs()
1171 err = ubifs_read_superblock(c); in mount_ubifs()
1172 if (err) in mount_ubifs()
1185 err = init_constants_sb(c); in mount_ubifs()
1186 if (err) in mount_ubifs()
1193 err = -ENOMEM; in mount_ubifs()
1199 err = alloc_wbufs(c); in mount_ubifs()
1200 if (err) in mount_ubifs()
1206 err = PTR_ERR(c->bgt); in mount_ubifs()
1209 c->bgt_name, err); in mount_ubifs()
1215 err = ubifs_read_master(c); in mount_ubifs()
1216 if (err) in mount_ubifs()
1225 err = ubifs_recover_inl_heads(c, c->sbuf); in mount_ubifs()
1226 if (err) in mount_ubifs()
1235 err = ubifs_write_master(c); in mount_ubifs()
1236 if (err) in mount_ubifs()
1240 err = ubifs_lpt_init(c, 1, !mounted_read_only); in mount_ubifs()
1241 if (err) in mount_ubifs()
1244 err = dbg_check_idx_size(c, c->old_idx_sz); in mount_ubifs()
1245 if (err) in mount_ubifs()
1248 err = ubifs_replay_journal(c); in mount_ubifs()
1249 if (err) in mount_ubifs()
1252 err = ubifs_mount_orphans(c, c->need_recovery, mounted_read_only); in mount_ubifs()
1253 if (err) in mount_ubifs()
1259 err = check_free_space(c); in mount_ubifs()
1260 if (err) in mount_ubifs()
1268 err = ubifs_consolidate_log(c); in mount_ubifs()
1269 if (err) in mount_ubifs()
1274 err = ubifs_recover_size(c); in mount_ubifs()
1275 if (err) in mount_ubifs()
1277 err = ubifs_rcvry_gc_commit(c); in mount_ubifs()
1279 err = take_gc_lnum(c); in mount_ubifs()
1280 if (err) in mount_ubifs()
1287 err = ubifs_leb_unmap(c, c->gc_lnum); in mount_ubifs()
1288 if (err) in mount_ubifs()
1289 return err; in mount_ubifs()
1292 err = dbg_check_lprops(c); in mount_ubifs()
1293 if (err) in mount_ubifs()
1296 err = ubifs_recover_size(c); in mount_ubifs()
1297 if (err) in mount_ubifs()
1306 err = take_gc_lnum(c); in mount_ubifs()
1307 if (err) in mount_ubifs()
1327 err = dbg_check_filesystem(c); in mount_ubifs()
1328 if (err) in mount_ubifs()
1331 err = dbg_debugfs_init_fs(c); in mount_ubifs()
1332 if (err) in mount_ubifs()
1436 return err; in mount_ubifs()
1486 int err, lnum; in ubifs_remount_rw() local
1493 err = check_free_space(c); in ubifs_remount_rw()
1494 if (err) in ubifs_remount_rw()
1502 err = PTR_ERR(sup); in ubifs_remount_rw()
1506 err = ubifs_write_sb_node(c, sup); in ubifs_remount_rw()
1507 if (err) in ubifs_remount_rw()
1513 err = ubifs_write_rcvrd_mst_node(c); in ubifs_remount_rw()
1514 if (err) in ubifs_remount_rw()
1516 err = ubifs_recover_size(c); in ubifs_remount_rw()
1517 if (err) in ubifs_remount_rw()
1519 err = ubifs_clean_lebs(c, c->sbuf); in ubifs_remount_rw()
1520 if (err) in ubifs_remount_rw()
1522 err = ubifs_recover_inl_heads(c, c->sbuf); in ubifs_remount_rw()
1523 if (err) in ubifs_remount_rw()
1528 err = ubifs_clear_orphans(c); in ubifs_remount_rw()
1529 if (err) in ubifs_remount_rw()
1535 err = ubifs_write_master(c); in ubifs_remount_rw()
1536 if (err) in ubifs_remount_rw()
1542 err = -ENOMEM; in ubifs_remount_rw()
1546 err = ubifs_lpt_init(c, 0, 1); in ubifs_remount_rw()
1547 if (err) in ubifs_remount_rw()
1550 err = alloc_wbufs(c); in ubifs_remount_rw()
1551 if (err) in ubifs_remount_rw()
1559 err = PTR_ERR(c->bgt); in ubifs_remount_rw()
1562 c->bgt_name, err); in ubifs_remount_rw()
1569 err = -ENOMEM; in ubifs_remount_rw()
1578 err = ubifs_consolidate_log(c); in ubifs_remount_rw()
1579 if (err) in ubifs_remount_rw()
1584 err = ubifs_rcvry_gc_commit(c); in ubifs_remount_rw()
1586 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_remount_rw()
1587 if (err) in ubifs_remount_rw()
1599 err = dbg_check_space_info(c); in ubifs_remount_rw()
1601 return err; in ubifs_remount_rw()
1617 return err; in ubifs_remount_rw()
1629 int i, err; in ubifs_remount_ro() local
1650 err = ubifs_write_master(c); in ubifs_remount_ro()
1651 if (err) in ubifs_remount_ro()
1652 ubifs_ro_mode(c, err); in ubifs_remount_ro()
1660 err = dbg_check_space_info(c); in ubifs_remount_ro()
1661 if (err) in ubifs_remount_ro()
1662 ubifs_ro_mode(c, err); in ubifs_remount_ro()
1717 int err; in ubifs_put_super() local
1722 err = ubifs_write_master(c); in ubifs_put_super()
1723 if (err) in ubifs_put_super()
1730 "error %d", err); in ubifs_put_super()
1743 int err; in ubifs_remount_fs() local
1748 err = ubifs_parse_options(c, data, 1); in ubifs_remount_fs()
1749 if (err) { in ubifs_remount_fs()
1751 return err; in ubifs_remount_fs()
1759 err = ubifs_remount_rw(c); in ubifs_remount_fs()
1760 if (err) in ubifs_remount_fs()
1761 return err; in ubifs_remount_fs()
1852 int err; in ubifs_fill_super() local
1897 err = PTR_ERR(c->ubi); in ubifs_fill_super()
1911 err = bdi_init(&c->bdi); in ubifs_fill_super()
1912 if (err) in ubifs_fill_super()
1915 err = ubifs_parse_options(c, data, 0); in ubifs_fill_super()
1916 if (err) in ubifs_fill_super()
1932 err = mount_ubifs(c); in ubifs_fill_super()
1933 if (err) { in ubifs_fill_super()
1934 ubifs_assert(err < 0); in ubifs_fill_super()
1941 err = PTR_ERR(root); in ubifs_fill_super()
1964 return err; in ubifs_fill_super()
1988 int err; in ubifs_get_sb() local
2009 err = PTR_ERR(sb); in ubifs_get_sb()
2017 err = -EBUSY; in ubifs_get_sb()
2027 err = ubifs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0); in ubifs_get_sb()
2028 if (err) in ubifs_get_sb()
2044 return err; in ubifs_get_sb()
2070 int err; in ubifs_init() local
2130 err = register_filesystem(&ubifs_fs_type); in ubifs_init()
2131 if (err) { in ubifs_init()
2132 ubifs_err("cannot register file system, error %d", err); in ubifs_init()
2133 return err; in ubifs_init()
2136 err = -ENOMEM; in ubifs_init()
2146 err = ubifs_compressors_init(); in ubifs_init()
2147 if (err) in ubifs_init()
2150 err = dbg_debugfs_init(); in ubifs_init()
2151 if (err) in ubifs_init()
2163 return err; in ubifs_init()