part of the patch was missed when it was backported
to b2_12, as a result bdev_integrity_enabled will
always defined as a function just returns false.
Change-Id: I9c9a83f3011f939e7f6d72140c08943d82a5416d
Fixes:
b14e6617b9 ("LU-11770 osc: allow build without blk_integrity or crc-t10pi")
Test-Parameters: trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/37167
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
}
#endif /* !CONFIG_BLK_DEV_INTEGRITY */
-#ifdef HAVE_BLK_INTEGRITY_ENABLED
#ifndef INTEGRITY_FLAG_READ
#define INTEGRITY_FLAG_READ BLK_INTEGRITY_VERIFY
#endif
return false;
}
-#else
-static inline bool bdev_integrity_enabled(struct block_device *bdev, int rw)
-{
- return false;
-}
-#endif /* HAVE_BLK_INTEGRITY_ENABLED */
#ifdef HAVE_PAGEVEC_INIT_ONE_PARAM
#define ll_pagevec_init(pvec, n) pagevec_init(pvec)