|
|
| version 1.60, 2007/11/02 03:11:36 | version 1.61, 2007/11/05 15:04:07 |
|---|---|
| Line 141 xfs_imap_to_bmap( | Line 141 xfs_imap_to_bmap( |
| iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); | iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); |
| iomapp->iomap_flags = flags; | iomapp->iomap_flags = flags; |
| if (ip->i_d.di_flags & XFS_DIFLAG_REALTIME) { | if (XFS_IS_REALTIME_INODE(ip)) { |
| iomapp->iomap_flags |= IOMAP_REALTIME; | iomapp->iomap_flags |= IOMAP_REALTIME; |
| iomapp->iomap_target = mp->m_rtdev_targp; | iomapp->iomap_target = mp->m_rtdev_targp; |
| } else { | } else { |
| Line 298 xfs_iomap_eof_align_last_fsb( | Line 298 xfs_iomap_eof_align_last_fsb( |
| xfs_extlen_t align; | xfs_extlen_t align; |
| int eof, error; | int eof, error; |
| if (ip->i_d.di_flags & XFS_DIFLAG_REALTIME) | if (XFS_IS_REALTIME_INODE(ip)) |
| ; | ; |
| /* | /* |
| * If mounted with the "-o swalloc" option, roundup the allocation | * If mounted with the "-o swalloc" option, roundup the allocation |
| Line 524 xfs_iomap_write_direct( | Line 524 xfs_iomap_write_direct( |
| } | } |
| if (unlikely(!imap.br_startblock && | if (unlikely(!imap.br_startblock && |
| !(ip->i_d.di_flags & XFS_DIFLAG_REALTIME))) { | !(XFS_IS_REALTIME_INODE(ip)))) { |
| error = xfs_cmn_err_fsblock_zero(ip, &imap); | error = xfs_cmn_err_fsblock_zero(ip, &imap); |
| goto error_out; | goto error_out; |
| } | } |
| Line 687 retry: | Line 687 retry: |
| } | } |
| if (unlikely(!imap[0].br_startblock && | if (unlikely(!imap[0].br_startblock && |
| !(ip->i_d.di_flags & XFS_DIFLAG_REALTIME))) | !(XFS_IS_REALTIME_INODE(ip)))) |
| return xfs_cmn_err_fsblock_zero(ip, &imap[0]); | return xfs_cmn_err_fsblock_zero(ip, &imap[0]); |
| *ret_imap = imap[0]; | *ret_imap = imap[0]; |
| Line 932 xfs_iomap_write_unwritten( | Line 932 xfs_iomap_write_unwritten( |
| return XFS_ERROR(error); | return XFS_ERROR(error); |
| if (unlikely(!imap.br_startblock && | if (unlikely(!imap.br_startblock && |
| !(ip->i_d.di_flags & XFS_DIFLAG_REALTIME))) | !(XFS_IS_REALTIME_INODE(ip)))) |
| return xfs_cmn_err_fsblock_zero(ip, &imap); | return xfs_cmn_err_fsblock_zero(ip, &imap); |
| if ((numblks_fsb = imap.br_blockcount) == 0) { | if ((numblks_fsb = imap.br_blockcount) == 0) { |