Lines Matching refs:error
146 int error; in xfs_update_prealloc_flags() local
149 error = xfs_trans_reserve(tp, &M_RES(ip->i_mount)->tr_writeid, 0, 0); in xfs_update_prealloc_flags()
150 if (error) { in xfs_update_prealloc_flags()
152 return error; in xfs_update_prealloc_flags()
215 int error = 0; in xfs_file_fsync() local
221 error = filemap_write_and_wait_range(inode->i_mapping, start, end); in xfs_file_fsync()
222 if (error) in xfs_file_fsync()
223 return error; in xfs_file_fsync()
265 error = _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync()
283 return error; in xfs_file_fsync()
439 int error = 0; in xfs_zero_last_block() local
443 error = xfs_bmapi_read(ip, last_fsb, 1, &imap, &nimaps, 0); in xfs_zero_last_block()
445 if (error) in xfs_zero_last_block()
446 return error; in xfs_zero_last_block()
490 int error = 0; in xfs_zero_eof() local
504 error = xfs_zero_last_block(ip, offset, isize, did_zeroing); in xfs_zero_eof()
505 if (error) in xfs_zero_eof()
506 return error; in xfs_zero_eof()
536 error = xfs_bmapi_read(ip, start_zero_fsb, zero_count_fsb, in xfs_zero_eof()
539 if (error) in xfs_zero_eof()
540 return error; in xfs_zero_eof()
560 error = xfs_iozero(ip, zero_off, zero_len); in xfs_zero_eof()
561 if (error) in xfs_zero_eof()
562 return error; in xfs_zero_eof()
588 ssize_t error = 0; in xfs_file_aio_write_checks() local
593 error = generic_write_checks(iocb, from); in xfs_file_aio_write_checks()
594 if (error <= 0) in xfs_file_aio_write_checks()
595 return error; in xfs_file_aio_write_checks()
597 error = xfs_break_layouts(inode, iolock, true); in xfs_file_aio_write_checks()
598 if (error) in xfs_file_aio_write_checks()
599 return error; in xfs_file_aio_write_checks()
647 error = xfs_zero_eof(ip, iocb->ki_pos, i_size_read(inode), &zero); in xfs_file_aio_write_checks()
648 if (error) in xfs_file_aio_write_checks()
649 return error; in xfs_file_aio_write_checks()
660 error = file_update_time(file); in xfs_file_aio_write_checks()
661 if (error) in xfs_file_aio_write_checks()
662 return error; in xfs_file_aio_write_checks()
926 long error; in xfs_file_fallocate() local
938 error = xfs_break_layouts(inode, &iolock, false); in xfs_file_fallocate()
939 if (error) in xfs_file_fallocate()
946 error = xfs_free_file_space(ip, offset, len); in xfs_file_fallocate()
947 if (error) in xfs_file_fallocate()
953 error = -EINVAL; in xfs_file_fallocate()
962 error = -EINVAL; in xfs_file_fallocate()
968 error = xfs_collapse_file_space(ip, offset, len); in xfs_file_fallocate()
969 if (error) in xfs_file_fallocate()
976 error = -EINVAL; in xfs_file_fallocate()
982 error = -EFBIG; in xfs_file_fallocate()
988 error = -EINVAL; in xfs_file_fallocate()
998 error = inode_newsize_ok(inode, new_size); in xfs_file_fallocate()
999 if (error) in xfs_file_fallocate()
1004 error = xfs_zero_file_space(ip, offset, len); in xfs_file_fallocate()
1006 error = xfs_alloc_file_space(ip, offset, len, in xfs_file_fallocate()
1008 if (error) in xfs_file_fallocate()
1015 error = xfs_update_prealloc_flags(ip, flags); in xfs_file_fallocate()
1016 if (error) in xfs_file_fallocate()
1025 error = xfs_setattr_size(ip, &iattr); in xfs_file_fallocate()
1026 if (error) in xfs_file_fallocate()
1037 error = xfs_insert_file_space(ip, offset, len); in xfs_file_fallocate()
1041 return error; in xfs_file_fallocate()
1064 int error; in xfs_dir_open() local
1066 error = xfs_file_open(inode, file); in xfs_dir_open()
1067 if (error) in xfs_dir_open()
1068 return error; in xfs_dir_open()
1347 int error; in xfs_seek_hole_data() local
1356 error = -ENXIO; in xfs_seek_hole_data()
1372 error = xfs_bmapi_read(ip, fsbno, end - fsbno, map, &nmap, in xfs_seek_hole_data()
1374 if (error) in xfs_seek_hole_data()
1379 error = -ENXIO; in xfs_seek_hole_data()
1429 error = -ENXIO; in xfs_seek_hole_data()
1447 error = -ENXIO; in xfs_seek_hole_data()
1466 if (error) in xfs_seek_hole_data()
1467 return error; in xfs_seek_hole_data()