summaryrefslogtreecommitdiffstats
path: root/block/ioprio.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2022-06-23 09:48:29 +0200
committerJens Axboe <axboe@kernel.dk>2022-06-27 14:29:12 +0200
commitfc25545e17bd74befe0b8ab2c65ac84936be5066 (patch)
treebcd004bccac1a74ad3a2a55e8babf2ba42189c32 /block/ioprio.c
parentblock: Generalize get_current_ioprio() for any task (diff)
downloadlinux-fc25545e17bd74befe0b8ab2c65ac84936be5066.tar.xz
linux-fc25545e17bd74befe0b8ab2c65ac84936be5066.zip
block: Make ioprio_best() static
Nobody outside of block/ioprio.c uses it. Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220623074840.5960-4-jack@suse.cz Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/ioprio.c')
-rw-r--r--block/ioprio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/ioprio.c b/block/ioprio.c
index c4e3476155a1..8c46f672a0ba 100644
--- a/block/ioprio.c
+++ b/block/ioprio.c
@@ -180,7 +180,7 @@ out:
return ret;
}
-int ioprio_best(unsigned short aprio, unsigned short bprio)
+static int ioprio_best(unsigned short aprio, unsigned short bprio)
{
if (!ioprio_valid(aprio))
aprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, IOPRIO_BE_NORM);