aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-08-16 04:42:07 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 02:45:25 -0400
commiteb9df39daf870d6f9e9528f092d506be04ebad2f (patch)
tree77646f792ae63f00d3e08e6081e80afefe87e4e7 /fs/xfs/linux-2.6
parent49ee6c911f0ae5b3a9a04e0589e3265e52f94f53 (diff)
[XFS] remove unessecary vfs argument to DM_EVENT_ENABLED
SGI-PV: 968690 SGI-Modid: xfs-linux-melb:xfs-kern:29340a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Vlad Apostolov <vapo@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_file.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_lrw.c17
2 files changed, 7 insertions, 12 deletions
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c
index 0d4001eafd1..4fc0f58edac 100644
--- a/fs/xfs/linux-2.6/xfs_file.c
+++ b/fs/xfs/linux-2.6/xfs_file.c
@@ -405,7 +405,7 @@ xfs_file_open_exec(
405 405
406 if (!ip) 406 if (!ip)
407 return -EINVAL; 407 return -EINVAL;
408 if (DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ)) 408 if (DM_EVENT_ENABLED(ip, DM_EVENT_READ))
409 return -XFS_SEND_DATA(mp, DM_EVENT_READ, vp, 409 return -XFS_SEND_DATA(mp, DM_EVENT_READ, vp,
410 0, 0, 0, NULL); 410 0, 0, 0, NULL);
411 } 411 }
diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c
index 765ec16a6e3..94941da6c4d 100644
--- a/fs/xfs/linux-2.6/xfs_lrw.c
+++ b/fs/xfs/linux-2.6/xfs_lrw.c
@@ -245,8 +245,7 @@ xfs_read(
245 mutex_lock(&inode->i_mutex); 245 mutex_lock(&inode->i_mutex);
246 xfs_ilock(ip, XFS_IOLOCK_SHARED); 246 xfs_ilock(ip, XFS_IOLOCK_SHARED);
247 247
248 if (DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ) && 248 if (DM_EVENT_ENABLED(ip, DM_EVENT_READ) && !(ioflags & IO_INVIS)) {
249 !(ioflags & IO_INVIS)) {
250 bhv_vrwlock_t locktype = VRWLOCK_READ; 249 bhv_vrwlock_t locktype = VRWLOCK_READ;
251 int dmflags = FILP_DELAY_FLAG(file) | DM_SEM_FLAG_RD(ioflags); 250 int dmflags = FILP_DELAY_FLAG(file) | DM_SEM_FLAG_RD(ioflags);
252 251
@@ -307,8 +306,7 @@ xfs_splice_read(
307 306
308 xfs_ilock(ip, XFS_IOLOCK_SHARED); 307 xfs_ilock(ip, XFS_IOLOCK_SHARED);
309 308
310 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_READ) && 309 if (DM_EVENT_ENABLED(ip, DM_EVENT_READ) && !(ioflags & IO_INVIS)) {
311 (!(ioflags & IO_INVIS))) {
312 bhv_vrwlock_t locktype = VRWLOCK_READ; 310 bhv_vrwlock_t locktype = VRWLOCK_READ;
313 int error; 311 int error;
314 312
@@ -354,8 +352,7 @@ xfs_splice_write(
354 352
355 xfs_ilock(ip, XFS_IOLOCK_EXCL); 353 xfs_ilock(ip, XFS_IOLOCK_EXCL);
356 354
357 if (DM_EVENT_ENABLED(BHV_TO_VNODE(bdp)->v_vfsp, ip, DM_EVENT_WRITE) && 355 if (DM_EVENT_ENABLED(ip, DM_EVENT_WRITE) && !(ioflags & IO_INVIS)) {
358 (!(ioflags & IO_INVIS))) {
359 bhv_vrwlock_t locktype = VRWLOCK_WRITE; 356 bhv_vrwlock_t locktype = VRWLOCK_WRITE;
360 int error; 357 int error;
361 358
@@ -664,7 +661,7 @@ start:
664 goto out_unlock_mutex; 661 goto out_unlock_mutex;
665 } 662 }
666 663
667 if ((DM_EVENT_ENABLED(vp->v_vfsp, xip, DM_EVENT_WRITE) && 664 if ((DM_EVENT_ENABLED(xip, DM_EVENT_WRITE) &&
668 !(ioflags & IO_INVIS) && !eventsent)) { 665 !(ioflags & IO_INVIS) && !eventsent)) {
669 int dmflags = FILP_DELAY_FLAG(file); 666 int dmflags = FILP_DELAY_FLAG(file);
670 667
@@ -816,10 +813,8 @@ retry:
816 if (ret == -EIOCBQUEUED && !(ioflags & IO_ISAIO)) 813 if (ret == -EIOCBQUEUED && !(ioflags & IO_ISAIO))
817 ret = wait_on_sync_kiocb(iocb); 814 ret = wait_on_sync_kiocb(iocb);
818 815
819 if ((ret == -ENOSPC) && 816 if (ret == -ENOSPC &&
820 DM_EVENT_ENABLED(vp->v_vfsp, xip, DM_EVENT_NOSPACE) && 817 DM_EVENT_ENABLED(xip, DM_EVENT_NOSPACE) && !(ioflags & IO_INVIS)) {
821 !(ioflags & IO_INVIS)) {
822
823 xfs_rwunlock(bdp, locktype); 818 xfs_rwunlock(bdp, locktype);
824 if (need_i_mutex) 819 if (need_i_mutex)
825 mutex_unlock(&inode->i_mutex); 820 mutex_unlock(&inode->i_mutex);