]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[XFS] Kill unused IOMAP_EOF flag
authorChristoph Hellwig <hch@infradead.org>
Wed, 19 Sep 2007 05:27:18 +0000 (15:27 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Tue, 16 Oct 2007 02:20:54 +0000 (12:20 +1000)
SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29705a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h

index bf57b75acb905aa3a5836fa75e65d859a112f453..72786e356d56ebba6e1f6455cf9f471fd52745fa 100644 (file)
@@ -135,14 +135,10 @@ xfs_imap_to_bmap(
        int             flags)
 {
        xfs_mount_t     *mp;
-       xfs_fsize_t     nisize;
        int             pbm;
        xfs_fsblock_t   start_block;
 
        mp = io->io_mount;
-       nisize = XFS_SIZE(mp, io);
-       if (io->io_new_size > nisize)
-               nisize = io->io_new_size;
 
        for (pbm = 0; imaps && pbm < iomaps; imaps--, iomapp++, imap++, pbm++) {
                iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff);
@@ -169,10 +165,6 @@ xfs_imap_to_bmap(
                                iomapp->iomap_flags |= IOMAP_UNWRITTEN;
                }
 
-               if ((iomapp->iomap_offset + iomapp->iomap_bsize) >= nisize) {
-                       iomapp->iomap_flags |= IOMAP_EOF;
-               }
-
                offset += iomapp->iomap_bsize - iomapp->iomap_delta;
        }
        return pbm;     /* Return the number filled */
index df441ee936b2f183a8706877245fd802f50178dc..f5c09887fe93647c6db79db7fa18531688c8c347 100644 (file)
@@ -23,7 +23,6 @@
 
 typedef enum {                         /* iomap_flags values */
        IOMAP_READ =            0,      /* mapping for a read */
-       IOMAP_EOF =             0x01,   /* mapping contains EOF   */
        IOMAP_HOLE =            0x02,   /* mapping covers a hole  */
        IOMAP_DELAY =           0x04,   /* mapping covers delalloc region  */
        IOMAP_REALTIME =        0x10,   /* mapping on the realtime device  */