diff options
author | Simon Rettberg | 2024-01-11 12:27:42 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-11 12:27:42 +0100 |
commit | 7cc38bb646160d2b7197e548f8aaf9bd6cea3451 (patch) | |
tree | 7adbc71696fd5fd862abb577a6a8ea996bc9c920 /src/kernel/xloop_file_fmt_raw.c | |
parent | Fix build on 5.15.132 and newer (diff) | |
download | xloop-7cc38bb646160d2b7197e548f8aaf9bd6cea3451.tar.gz xloop-7cc38bb646160d2b7197e548f8aaf9bd6cea3451.tar.xz xloop-7cc38bb646160d2b7197e548f8aaf9bd6cea3451.zip |
Fix Mr. Bauer's crimes against the kernel coding guidelines :)
Diffstat (limited to 'src/kernel/xloop_file_fmt_raw.c')
-rw-r--r-- | src/kernel/xloop_file_fmt_raw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/xloop_file_fmt_raw.c b/src/kernel/xloop_file_fmt_raw.c index 06a91bd..f77476f 100644 --- a/src/kernel/xloop_file_fmt_raw.c +++ b/src/kernel/xloop_file_fmt_raw.c @@ -157,7 +157,7 @@ static void __raw_file_fmt_rw_aio_complete(struct kiocb *iocb, long ret) struct xloop_cmd *cmd = container_of(iocb, struct xloop_cmd, iocb); -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && ! RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && !RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) if (cmd->css) css_put(cmd->css); #endif @@ -232,7 +232,7 @@ static int __raw_file_fmt_rw_aio(struct xloop_device *xlo, struct xloop_cmd *cmd cmd->iocb.ki_complete = __raw_file_fmt_rw_aio_complete; cmd->iocb.ki_flags = IOCB_DIRECT; cmd->iocb.ki_ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, 0); -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && ! RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && !RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) if (cmd->css) kthread_associate_blkcg(cmd->css); #endif @@ -243,7 +243,7 @@ static int __raw_file_fmt_rw_aio(struct xloop_device *xlo, struct xloop_cmd *cmd ret = call_read_iter(file, &cmd->iocb, &iter); __raw_file_fmt_rw_aio_do_completion(cmd); -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && ! RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && !RHEL_CHECK_VERSION(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)) kthread_associate_blkcg(NULL); #endif |