diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 12:04:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 12:04:11 -0400 |
commit | 347c53dca73fca317d57781f510f5ff4f6c0d0d7 (patch) | |
tree | cdc405ac049751da4d76085ce58750b6b2a22326 /fs/xfs/xfs_iomap.c | |
parent | 5c8e191e8437616a498a8e1cc0af3dd0d32bbff2 (diff) | |
parent | 7f015072348a14f16d548be557ee58c5c55df0aa (diff) |
Merge branch 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6
* 'for-linus' of git://oss.sgi.com:8090/xfs/xfs-2.6: (59 commits)
[XFS] eagerly remove vmap mappings to avoid upsetting Xen
[XFS] simplify validata_fields
[XFS] no longer using io_vnode, as was remaining from 23 cherrypick
[XFS] Remove STATIC which was missing from prior manual merge
[XFS] Put back the QUEUE_ORDERED_NONE test in the barrier check.
[XFS] Turn off XBF_ASYNC flag before re-reading superblock.
[XFS] avoid race in sync_inodes() that can fail to write out all dirty data
[XFS] This fix prevents bulkstat from spinning in an infinite loop.
[XFS] simplify xfs_create/mknod/symlink prototype
[XFS] avoid xfs_getattr in XFS_IOC_FSGETXATTR ioctl
[XFS] get_bulkall() could return incorrect inode state
[XFS] Kill unused IOMAP_EOF flag
[XFS] fix when DMAPI mount option processing happens
[XFS] ensure file size is logged on synchronous writes
[XFS] growlock should be a mutex
[XFS] replace some large xfs_log_priv.h macros by proper functions
[XFS] kill struct bhv_vfs
[XFS] move syncing related members from struct bhv_vfs to struct xfs_mount
[XFS] kill the vfs_flags member in struct bhv_vfs
[XFS] kill the vfs_fsid and vfs_altfsid members in struct bhv_vfs
...
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index bf57b75acb90..72786e356d56 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -135,14 +135,10 @@ xfs_imap_to_bmap( | |||
135 | int flags) | 135 | int flags) |
136 | { | 136 | { |
137 | xfs_mount_t *mp; | 137 | xfs_mount_t *mp; |
138 | xfs_fsize_t nisize; | ||
139 | int pbm; | 138 | int pbm; |
140 | xfs_fsblock_t start_block; | 139 | xfs_fsblock_t start_block; |
141 | 140 | ||
142 | mp = io->io_mount; | 141 | mp = io->io_mount; |
143 | nisize = XFS_SIZE(mp, io); | ||
144 | if (io->io_new_size > nisize) | ||
145 | nisize = io->io_new_size; | ||
146 | 142 | ||
147 | for (pbm = 0; imaps && pbm < iomaps; imaps--, iomapp++, imap++, pbm++) { | 143 | for (pbm = 0; imaps && pbm < iomaps; imaps--, iomapp++, imap++, pbm++) { |
148 | iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff); | 144 | iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff); |
@@ -169,10 +165,6 @@ xfs_imap_to_bmap( | |||
169 | iomapp->iomap_flags |= IOMAP_UNWRITTEN; | 165 | iomapp->iomap_flags |= IOMAP_UNWRITTEN; |
170 | } | 166 | } |
171 | 167 | ||
172 | if ((iomapp->iomap_offset + iomapp->iomap_bsize) >= nisize) { | ||
173 | iomapp->iomap_flags |= IOMAP_EOF; | ||
174 | } | ||
175 | |||
176 | offset += iomapp->iomap_bsize - iomapp->iomap_delta; | 168 | offset += iomapp->iomap_bsize - iomapp->iomap_delta; |
177 | } | 169 | } |
178 | return pbm; /* Return the number filled */ | 170 | return pbm; /* Return the number filled */ |