diff options
| author | Nathan Scott <nathans@sgi.com> | 2006-09-27 21:05:33 -0400 |
|---|---|---|
| committer | Tim Shimmin <tes@sgi.com> | 2006-09-27 21:05:33 -0400 |
| commit | edcd4bce5e58987c8c039bdf7705a22cd229fe96 (patch) | |
| tree | 208d7420365a9a6f6a0f33a19ae92db205c966b3 /fs | |
| parent | 215101c36012399cf2eaee849de54eeefc9f618c (diff) | |
[XFS] Minor cleanup from dio locking fix, remove an extra conditional.
SGI-PV: 955696
SGI-Modid: xfs-linux-melb:xfs-kern:26908a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_lrw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c index ee788b1cb364..55992b40353c 100644 --- a/fs/xfs/linux-2.6/xfs_lrw.c +++ b/fs/xfs/linux-2.6/xfs_lrw.c | |||
| @@ -270,12 +270,12 @@ xfs_read( | |||
| 270 | } | 270 | } |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | if (unlikely((ioflags & IO_ISDIRECT) && VN_CACHED(vp))) | 273 | if (unlikely(ioflags & IO_ISDIRECT)) { |
| 274 | bhv_vop_flushinval_pages(vp, ctooff(offtoct(*offset)), | 274 | if (VN_CACHED(vp)) |
| 275 | -1, FI_REMAPF_LOCKED); | 275 | bhv_vop_flushinval_pages(vp, ctooff(offtoct(*offset)), |
| 276 | 276 | -1, FI_REMAPF_LOCKED); | |
| 277 | if (unlikely(ioflags & IO_ISDIRECT)) | ||
| 278 | mutex_unlock(&inode->i_mutex); | 277 | mutex_unlock(&inode->i_mutex); |
| 278 | } | ||
| 279 | 279 | ||
| 280 | xfs_rw_enter_trace(XFS_READ_ENTER, &ip->i_iocore, | 280 | xfs_rw_enter_trace(XFS_READ_ENTER, &ip->i_iocore, |
| 281 | (void *)iovp, segs, *offset, ioflags); | 281 | (void *)iovp, segs, *offset, ioflags); |
