aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_iomap.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c
index 4bdd796e7ae9..45a77a3a6c07 100644
--- a/fs/xfs/xfs_iomap.c
+++ b/fs/xfs/xfs_iomap.c
@@ -364,7 +364,6 @@ xfs_iomap_write_direct(
364 xfs_fileoff_t offset_fsb; 364 xfs_fileoff_t offset_fsb;
365 xfs_fileoff_t last_fsb; 365 xfs_fileoff_t last_fsb;
366 xfs_filblks_t count_fsb; 366 xfs_filblks_t count_fsb;
367 xfs_fsize_t isize;
368 xfs_fsblock_t firstfsb; 367 xfs_fsblock_t firstfsb;
369 int nimaps; 368 int nimaps;
370 int error; 369 int error;
@@ -374,7 +373,6 @@ xfs_iomap_write_direct(
374 xfs_trans_t *tp; 373 xfs_trans_t *tp;
375 xfs_bmbt_irec_t imap; 374 xfs_bmbt_irec_t imap;
376 xfs_bmap_free_t free_list; 375 xfs_bmap_free_t free_list;
377 int aeof;
378 xfs_filblks_t qblocks, resblks; 376 xfs_filblks_t qblocks, resblks;
379 int committed; 377 int committed;
380 int resrtextents; 378 int resrtextents;
@@ -387,12 +385,6 @@ xfs_iomap_write_direct(
387 if (error) 385 if (error)
388 return XFS_ERROR(error); 386 return XFS_ERROR(error);
389 387
390 isize = ip->i_d.di_size;
391 aeof = (offset + count) > isize;
392
393 if (io->io_new_size > isize)
394 isize = io->io_new_size;
395
396 offset_fsb = XFS_B_TO_FSBT(mp, offset); 388 offset_fsb = XFS_B_TO_FSBT(mp, offset);
397 last_fsb = XFS_B_TO_FSB(mp, ((xfs_ufsize_t)(offset + count))); 389 last_fsb = XFS_B_TO_FSB(mp, ((xfs_ufsize_t)(offset + count)));
398 count_fsb = last_fsb - offset_fsb; 390 count_fsb = last_fsb - offset_fsb;