diff options
author | Christoph Hellwig <hch@infradead.org> | 2007-08-16 04:42:07 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 02:45:25 -0400 |
commit | eb9df39daf870d6f9e9528f092d506be04ebad2f (patch) | |
tree | 77646f792ae63f00d3e08e6081e80afefe87e4e7 /fs/xfs/xfs_rename.c | |
parent | 49ee6c911f0ae5b3a9a04e0589e3265e52f94f53 (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/xfs_rename.c')
-rw-r--r-- | fs/xfs/xfs_rename.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/xfs/xfs_rename.c b/fs/xfs/xfs_rename.c index 7679d7a7022d..53d9600af4a4 100644 --- a/fs/xfs/xfs_rename.c +++ b/fs/xfs/xfs_rename.c | |||
@@ -264,9 +264,8 @@ xfs_rename( | |||
264 | src_dp = XFS_BHVTOI(src_dir_bdp); | 264 | src_dp = XFS_BHVTOI(src_dir_bdp); |
265 | mp = src_dp->i_mount; | 265 | mp = src_dp->i_mount; |
266 | 266 | ||
267 | if (DM_EVENT_ENABLED(src_dir_vp->v_vfsp, src_dp, DM_EVENT_RENAME) || | 267 | if (DM_EVENT_ENABLED(src_dp, DM_EVENT_RENAME) || |
268 | DM_EVENT_ENABLED(target_dir_vp->v_vfsp, | 268 | DM_EVENT_ENABLED(target_dp, DM_EVENT_RENAME)) { |
269 | target_dp, DM_EVENT_RENAME)) { | ||
270 | error = XFS_SEND_NAMESP(mp, DM_EVENT_RENAME, | 269 | error = XFS_SEND_NAMESP(mp, DM_EVENT_RENAME, |
271 | src_dir_vp, DM_RIGHT_NULL, | 270 | src_dir_vp, DM_RIGHT_NULL, |
272 | target_dir_vp, DM_RIGHT_NULL, | 271 | target_dir_vp, DM_RIGHT_NULL, |
@@ -603,9 +602,8 @@ xfs_rename( | |||
603 | /* Fall through to std_return with error = 0 or errno from | 602 | /* Fall through to std_return with error = 0 or errno from |
604 | * xfs_trans_commit */ | 603 | * xfs_trans_commit */ |
605 | std_return: | 604 | std_return: |
606 | if (DM_EVENT_ENABLED(src_dir_vp->v_vfsp, src_dp, DM_EVENT_POSTRENAME) || | 605 | if (DM_EVENT_ENABLED(src_dp, DM_EVENT_POSTRENAME) || |
607 | DM_EVENT_ENABLED(target_dir_vp->v_vfsp, | 606 | DM_EVENT_ENABLED(target_dp, DM_EVENT_POSTRENAME)) { |
608 | target_dp, DM_EVENT_POSTRENAME)) { | ||
609 | (void) XFS_SEND_NAMESP (mp, DM_EVENT_POSTRENAME, | 607 | (void) XFS_SEND_NAMESP (mp, DM_EVENT_POSTRENAME, |
610 | src_dir_vp, DM_RIGHT_NULL, | 608 | src_dir_vp, DM_RIGHT_NULL, |
611 | target_dir_vp, DM_RIGHT_NULL, | 609 | target_dir_vp, DM_RIGHT_NULL, |