aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r--fs/xfs/xfs_bmap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index 9abe93cfb5cc..ea4eab14a603 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -5811,10 +5811,9 @@ xfs_getbmap(
5811 * could misinterpret holes in a DMAPI file as true holes, 5811 * could misinterpret holes in a DMAPI file as true holes,
5812 * when in fact they may represent offline user data. 5812 * when in fact they may represent offline user data.
5813 */ 5813 */
5814 if ( (interface & BMV_IF_NO_DMAPI_READ) == 0 5814 if ((interface & BMV_IF_NO_DMAPI_READ) == 0 &&
5815 && DM_EVENT_ENABLED(vp->v_vfsp, ip, DM_EVENT_READ) 5815 DM_EVENT_ENABLED(ip, DM_EVENT_READ) &&
5816 && whichfork == XFS_DATA_FORK) { 5816 whichfork == XFS_DATA_FORK) {
5817
5818 error = XFS_SEND_DATA(mp, DM_EVENT_READ, vp, 0, 0, 0, NULL); 5817 error = XFS_SEND_DATA(mp, DM_EVENT_READ, vp, 0, 0, 0, NULL);
5819 if (error) 5818 if (error)
5820 return XFS_ERROR(error); 5819 return XFS_ERROR(error);