Lines Matching refs:error

106 	int error, max_inline_size;
112 error = ext4_get_inode_loc(inode, &iloc);
113 if (error) {
114 ext4_error_inode_err(inode, __func__, __LINE__, 0, -error,
146 int error;
151 error = ext4_get_inode_loc(inode, &is.iloc);
152 if (error)
153 return error;
155 error = ext4_xattr_ibody_find(inode, &i, &is);
156 if (error)
163 error = -EFSCORRUPTED;
173 return error;
264 int error;
274 error = ext4_get_inode_loc(inode, &is.iloc);
275 if (error)
276 return error;
279 error = ext4_journal_get_write_access(handle, is.iloc.bh);
280 if (error)
295 error = ext4_xattr_ibody_find(inode, &i, &is);
296 if (error)
301 error = ext4_xattr_ibody_set(handle, inode, &i, &is);
302 if (error) {
303 if (error == -ENOSPC)
318 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc);
322 return error;
328 int error;
342 error = ext4_get_inode_loc(inode, &is.iloc);
343 if (error)
344 return error;
346 error = ext4_xattr_ibody_find(inode, &i, &is);
347 if (error)
355 error = -ENOMEM;
359 error = ext4_xattr_ibody_get(inode, i.name_index, i.name,
361 if (error < 0)
365 error = ext4_journal_get_write_access(handle, is.iloc.bh);
366 if (error)
373 error = ext4_xattr_ibody_set(handle, inode, &i, &is);
374 if (error)
383 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc);
388 return error;
428 int error;
433 error = ext4_get_inode_loc(inode, &is.iloc);
434 if (error)
435 return error;
437 error = ext4_xattr_ibody_find(inode, &i, &is);
438 if (error)
442 error = ext4_journal_get_write_access(handle, is.iloc.bh);
443 if (error)
446 error = ext4_xattr_ibody_set(handle, inode, &i, &is);
447 if (error)
464 error = ext4_mark_iloc_dirty(handle, inode, &is.iloc);
471 if (error == -ENODATA)
472 error = 0;
473 return error;
1063 * ext4_new_inode() setting the times, but error
1146 "error restoring inline_data for inode -- potential data loss! (inode %lu, error %d)",
1203 int error;
1212 error = -ENOMEM;
1216 error = ext4_read_inline_data(inode, buf, inline_size, iloc);
1217 if (error < 0)
1225 error = ext4_check_all_de(inode, iloc->bh,
1228 if (error)
1232 error = ext4_destroy_inline_data_nolock(handle, inode);
1233 if (error)
1239 error = ext4_map_blocks(handle, inode, &map, EXT4_GET_BLOCKS_CREATE);
1240 if (error < 0)
1243 error = -EIO;
1249 error = -ENOMEM;
1254 error = ext4_journal_get_create_access(handle, data_bh);
1255 if (error) {
1257 error = -EIO;
1266 error = ext4_handle_dirty_metadata(handle,
1269 error = ext4_finish_convert_inline_dir(handle, inode, data_bh,
1274 if (error)
1280 return error;
1355 * into the tree. If there is an error it is returned in err.
1616 * If it succeeds, return 0, otherwise return the error.
1795 "error %d getting inode %lu block",
1859 int error = -EAGAIN;
1866 error = ext4_get_inode_loc(inode, &iloc);
1867 if (error)
1885 return error;
1988 int error, needed_blocks, no_expand;
2002 error = filemap_flush(inode->i_mapping);
2003 if (error)
2004 return error;
2012 error = ext4_get_inode_loc(inode, &iloc);
2013 if (error)
2014 return error;
2018 error = PTR_ERR(handle);
2024 error = ext4_convert_inline_data_nolock(handle, inode, &iloc);
2029 return error;