Commit e2ed81fb authored by Eric Sandeen's avatar Eric Sandeen Committed by Nathan Scott

[XFS] remove unused code from xfs_iomap_write_direct

SGI-PV: 943266
SGI-Modid: xfs-linux:xfs-kern:200996a
Signed-off-by: default avatarEric Sandeen <sandeen@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent e94af02a
...@@ -364,7 +364,6 @@ xfs_iomap_write_direct( ...@@ -364,7 +364,6 @@ xfs_iomap_write_direct(
xfs_fileoff_t offset_fsb; xfs_fileoff_t offset_fsb;
xfs_fileoff_t last_fsb; xfs_fileoff_t last_fsb;
xfs_filblks_t count_fsb; xfs_filblks_t count_fsb;
xfs_fsize_t isize;
xfs_fsblock_t firstfsb; xfs_fsblock_t firstfsb;
int nimaps; int nimaps;
int error; int error;
...@@ -374,7 +373,6 @@ xfs_iomap_write_direct( ...@@ -374,7 +373,6 @@ xfs_iomap_write_direct(
xfs_trans_t *tp; xfs_trans_t *tp;
xfs_bmbt_irec_t imap; xfs_bmbt_irec_t imap;
xfs_bmap_free_t free_list; xfs_bmap_free_t free_list;
int aeof;
xfs_filblks_t qblocks, resblks; xfs_filblks_t qblocks, resblks;
int committed; int committed;
int resrtextents; int resrtextents;
...@@ -387,12 +385,6 @@ xfs_iomap_write_direct( ...@@ -387,12 +385,6 @@ xfs_iomap_write_direct(
if (error) if (error)
return XFS_ERROR(error); return XFS_ERROR(error);
isize = ip->i_d.di_size;
aeof = (offset + count) > isize;
if (io->io_new_size > isize)
isize = io->io_new_size;
offset_fsb = XFS_B_TO_FSBT(mp, offset); offset_fsb = XFS_B_TO_FSBT(mp, offset);
last_fsb = XFS_B_TO_FSB(mp, ((xfs_ufsize_t)(offset + count))); last_fsb = XFS_B_TO_FSB(mp, ((xfs_ufsize_t)(offset + count)));
count_fsb = last_fsb - offset_fsb; count_fsb = last_fsb - offset_fsb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment