|
|
| version 1.154, 2007/09/13 06:10:29 | version 1.155, 2007/09/13 06:11:17 |
|---|---|
| Line 238 xfs_end_bio_unwritten( | Line 238 xfs_end_bio_unwritten( |
| { | { |
| xfs_ioend_t *ioend = | xfs_ioend_t *ioend = |
| container_of(work, xfs_ioend_t, io_work); | container_of(work, xfs_ioend_t, io_work); |
| struct xfs_inode *ip = XFS_I(ioend->io_inode); | |
| xfs_off_t offset = ioend->io_offset; | xfs_off_t offset = ioend->io_offset; |
| size_t size = ioend->io_size; | size_t size = ioend->io_size; |
| if (likely(!ioend->io_error)) { | if (likely(!ioend->io_error)) { |
| xfs_bmap(XFS_I(ioend->io_inode), offset, size, | if (!XFS_FORCED_SHUTDOWN(ip->i_mount)) |
| BMAPI_UNWRITTEN, NULL, NULL); | xfs_iomap_write_unwritten(ip, offset, size); |
| xfs_setfilesize(ioend); | xfs_setfilesize(ioend); |
| } | } |
| xfs_destroy_ioend(ioend); | xfs_destroy_ioend(ioend); |