• Home
  • Raw
  • Download

Lines Matching refs:err

62 	int err, len, out_len;  in read_block()  local
67 err = ubifs_tnc_lookup(c, &key, dn); in read_block()
68 if (err) { in read_block()
69 if (err == -ENOENT) in read_block()
72 return err; in read_block()
83 err = ubifs_decompress(&dn->data, dlen, addr, &out_len, in read_block()
85 if (err || len != out_len) in read_block()
108 int err = 0, i; in do_readpage() local
132 err = -ENOMEM; in do_readpage()
142 err = -ENOENT; in do_readpage()
147 err = ret; in do_readpage()
148 if (err != -ENOENT) in do_readpage()
163 if (err) { in do_readpage()
164 if (err == -ENOENT) { in do_readpage()
171 page->index, inode->i_ino, err); in do_readpage()
190 return err; in do_readpage()
229 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in write_begin_slow()
247 err = ubifs_budget_space(c, &req); in write_begin_slow()
248 if (unlikely(err)) in write_begin_slow()
249 return err; in write_begin_slow()
261 err = do_readpage(page); in write_begin_slow()
262 if (err) { in write_begin_slow()
265 return err; in write_begin_slow()
432 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in ubifs_write_begin()
457 err = do_readpage(page); in ubifs_write_begin()
458 if (err) { in ubifs_write_begin()
461 return err; in ubifs_write_begin()
469 err = allocate_budget(c, page, ui, appending); in ubifs_write_begin()
470 if (unlikely(err)) { in ubifs_write_begin()
471 ubifs_assert(err == -ENOSPC); in ubifs_write_begin()
619 int err, len, out_len, dlen; in populate_page() local
638 err = ubifs_decompress(&dn->data, dlen, addr, &out_len, in populate_page()
640 if (err || len != out_len) in populate_page()
706 int err, page_idx, page_cnt, ret = 0, n = 0; in ubifs_do_bulk_read() local
710 err = ubifs_tnc_get_bu_keys(c, bu); in ubifs_do_bulk_read()
711 if (err) in ubifs_do_bulk_read()
747 err = ubifs_tnc_bulk_read(c, bu); in ubifs_do_bulk_read()
748 if (err) in ubifs_do_bulk_read()
752 err = populate_page(c, page1, bu, &n); in ubifs_do_bulk_read()
753 if (err) in ubifs_do_bulk_read()
775 err = populate_page(c, page, bu, &n); in ubifs_do_bulk_read()
778 if (err) in ubifs_do_bulk_read()
790 ubifs_warn("ignoring error %d and skipping bulk-read", err); in ubifs_do_bulk_read()
814 int err = 0, allocated = 0; in ubifs_bulk_read() local
861 err = ubifs_do_bulk_read(c, bu, page); in ubifs_bulk_read()
870 return err; in ubifs_bulk_read()
884 int err = 0, i, blen; in do_writepage() local
906 err = ubifs_jnl_write_data(c, inode, &key, addr, blen); in do_writepage()
907 if (err) in do_writepage()
915 if (err) { in do_writepage()
918 page->index, inode->i_ino, err); in do_writepage()
919 ubifs_ro_mode(c, err); in do_writepage()
935 return err; in do_writepage()
986 int err, len = i_size & (PAGE_CACHE_SIZE - 1); in ubifs_writepage() local
995 err = 0; in ubifs_writepage()
1006 err = inode->i_sb->s_op->write_inode(inode, 1); in ubifs_writepage()
1007 if (err) in ubifs_writepage()
1034 err = inode->i_sb->s_op->write_inode(inode, 1); in ubifs_writepage()
1035 if (err) in ubifs_writepage()
1043 return err; in ubifs_writepage()
1088 int err; in do_truncation() local
1108 err = ubifs_budget_space(c, &req); in do_truncation()
1109 if (err) { in do_truncation()
1114 if (new_size || err != -ENOSPC) in do_truncation()
1115 return err; in do_truncation()
1119 err = vmtruncate(inode, new_size); in do_truncation()
1120 if (err) in do_truncation()
1144 err = do_writepage(page, offset); in do_truncation()
1146 if (err) in do_truncation()
1171 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
1180 return err; in do_truncation()
1196 int err, release; in do_setattr() local
1202 err = ubifs_budget_space(c, &req); in do_setattr()
1203 if (err) in do_setattr()
1204 return err; in do_setattr()
1208 err = vmtruncate(inode, new_size); in do_setattr()
1209 if (err) in do_setattr()
1237 err = inode->i_sb->s_op->write_inode(inode, 1); in do_setattr()
1238 return err; in do_setattr()
1242 return err; in do_setattr()
1247 int err; in ubifs_setattr() local
1253 err = inode_change_ok(inode, attr); in ubifs_setattr()
1254 if (err) in ubifs_setattr()
1255 return err; in ubifs_setattr()
1257 err = dbg_check_synced_i_size(inode); in ubifs_setattr()
1258 if (err) in ubifs_setattr()
1259 return err; in ubifs_setattr()
1263 err = do_truncation(c, inode, attr); in ubifs_setattr()
1265 err = do_setattr(c, inode, attr); in ubifs_setattr()
1267 return err; in ubifs_setattr()
1302 int err; in ubifs_fsync() local
1311 err = inode->i_sb->s_op->write_inode(inode, 1); in ubifs_fsync()
1312 if (err) in ubifs_fsync()
1313 return err; in ubifs_fsync()
1320 err = ubifs_sync_wbufs_by_inode(c, inode); in ubifs_fsync()
1321 if (err) in ubifs_fsync()
1322 return err; in ubifs_fsync()
1360 int err, release; in update_mctime() local
1364 err = ubifs_budget_space(c, &req); in update_mctime()
1365 if (err) in update_mctime()
1366 return err; in update_mctime()
1383 int err; in ubifs_aio_write() local
1388 err = update_mctime(c, inode); in ubifs_aio_write()
1389 if (err) in ubifs_aio_write()
1390 return err; in ubifs_aio_write()
1397 err = ubifs_sync_wbufs_by_inode(c, inode); in ubifs_aio_write()
1398 if (err) in ubifs_aio_write()
1399 return err; in ubifs_aio_write()
1443 int err, update_time; in ubifs_vm_page_mkwrite() local
1478 err = ubifs_budget_space(c, &req); in ubifs_vm_page_mkwrite()
1479 if (unlikely(err)) { in ubifs_vm_page_mkwrite()
1480 if (err == -ENOSPC) in ubifs_vm_page_mkwrite()
1483 return err; in ubifs_vm_page_mkwrite()
1490 err = -EINVAL; in ubifs_vm_page_mkwrite()
1523 return err; in ubifs_vm_page_mkwrite()
1533 int err; in ubifs_file_mmap() local
1536 err = generic_file_mmap(file, vma); in ubifs_file_mmap()
1537 if (err) in ubifs_file_mmap()
1538 return err; in ubifs_file_mmap()