Lines Matching refs:error

136 	int			error;  in xfs_update_prealloc_flags()  local
139 error = xfs_trans_reserve(tp, &M_RES(ip->i_mount)->tr_writeid, 0, 0); in xfs_update_prealloc_flags()
140 if (error) { in xfs_update_prealloc_flags()
142 return error; in xfs_update_prealloc_flags()
205 int error = 0; in xfs_file_fsync() local
211 error = filemap_write_and_wait_range(inode->i_mapping, start, end); in xfs_file_fsync()
212 if (error) in xfs_file_fsync()
213 return error; in xfs_file_fsync()
247 error = _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync()
262 return error; in xfs_file_fsync()
407 int error = 0; in xfs_zero_last_block() local
411 error = xfs_bmapi_read(ip, last_fsb, 1, &imap, &nimaps, 0); in xfs_zero_last_block()
413 if (error) in xfs_zero_last_block()
414 return error; in xfs_zero_last_block()
458 int error = 0; in xfs_zero_eof() local
470 error = xfs_zero_last_block(ip, offset, isize, did_zeroing); in xfs_zero_eof()
471 if (error) in xfs_zero_eof()
472 return error; in xfs_zero_eof()
502 error = xfs_bmapi_read(ip, start_zero_fsb, zero_count_fsb, in xfs_zero_eof()
505 if (error) in xfs_zero_eof()
506 return error; in xfs_zero_eof()
526 error = xfs_iozero(ip, zero_off, zero_len); in xfs_zero_eof()
527 if (error) in xfs_zero_eof()
528 return error; in xfs_zero_eof()
554 ssize_t error = 0; in xfs_file_aio_write_checks() local
558 error = generic_write_checks(iocb, from); in xfs_file_aio_write_checks()
559 if (error <= 0) in xfs_file_aio_write_checks()
560 return error; in xfs_file_aio_write_checks()
562 error = xfs_break_layouts(inode, iolock, true); in xfs_file_aio_write_checks()
563 if (error) in xfs_file_aio_write_checks()
564 return error; in xfs_file_aio_write_checks()
603 error = xfs_zero_eof(ip, iocb->ki_pos, i_size_read(inode), &zero); in xfs_file_aio_write_checks()
604 if (error) in xfs_file_aio_write_checks()
605 return error; in xfs_file_aio_write_checks()
616 error = file_update_time(file); in xfs_file_aio_write_checks()
617 if (error) in xfs_file_aio_write_checks()
618 return error; in xfs_file_aio_write_checks()
877 long error; in xfs_file_fallocate() local
889 error = xfs_break_layouts(inode, &iolock, false); in xfs_file_fallocate()
890 if (error) in xfs_file_fallocate()
897 error = xfs_free_file_space(ip, offset, len); in xfs_file_fallocate()
898 if (error) in xfs_file_fallocate()
904 error = -EINVAL; in xfs_file_fallocate()
913 error = -EINVAL; in xfs_file_fallocate()
919 error = xfs_collapse_file_space(ip, offset, len); in xfs_file_fallocate()
920 if (error) in xfs_file_fallocate()
927 error = -EINVAL; in xfs_file_fallocate()
933 error = -EFBIG; in xfs_file_fallocate()
939 error = -EINVAL; in xfs_file_fallocate()
949 error = inode_newsize_ok(inode, new_size); in xfs_file_fallocate()
950 if (error) in xfs_file_fallocate()
955 error = xfs_zero_file_space(ip, offset, len); in xfs_file_fallocate()
957 error = xfs_alloc_file_space(ip, offset, len, in xfs_file_fallocate()
959 if (error) in xfs_file_fallocate()
966 error = xfs_update_prealloc_flags(ip, flags); in xfs_file_fallocate()
967 if (error) in xfs_file_fallocate()
976 error = xfs_setattr_size(ip, &iattr); in xfs_file_fallocate()
977 if (error) in xfs_file_fallocate()
988 error = xfs_insert_file_space(ip, offset, len); in xfs_file_fallocate()
992 return error; in xfs_file_fallocate()
1015 int error; in xfs_dir_open() local
1017 error = xfs_file_open(inode, file); in xfs_dir_open()
1018 if (error) in xfs_dir_open()
1019 return error; in xfs_dir_open()
1309 int error; in xfs_seek_hole_data() local
1318 error = -ENXIO; in xfs_seek_hole_data()
1334 error = xfs_bmapi_read(ip, fsbno, end - fsbno, map, &nmap, in xfs_seek_hole_data()
1336 if (error) in xfs_seek_hole_data()
1341 error = -ENXIO; in xfs_seek_hole_data()
1391 error = -ENXIO; in xfs_seek_hole_data()
1409 error = -ENXIO; in xfs_seek_hole_data()
1428 if (error) in xfs_seek_hole_data()
1429 return error; in xfs_seek_hole_data()
1467 int error; in xfs_filemap_fault() local
1472 error = filemap_fault(vma, vmf); in xfs_filemap_fault()
1475 return error; in xfs_filemap_fault()
1490 int error; in xfs_filemap_page_mkwrite() local
1495 error = block_page_mkwrite(vma, vmf, xfs_get_blocks); in xfs_filemap_page_mkwrite()
1498 return error; in xfs_filemap_page_mkwrite()