Skip to content

Commit

Permalink
block: Make ioprio_best() static
Browse files Browse the repository at this point in the history
Nobody outside of block/ioprio.c uses it.

Reviewed-by: Damien Le Moal <[email protected]>
Tested-by: Damien Le Moal <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
jankara authored and axboe committed Jun 27, 2022
1 parent 893e5d3 commit fc25545
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion block/ioprio.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static int get_task_ioprio(struct task_struct *p)
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);
Expand Down
5 changes: 0 additions & 5 deletions include/linux/ioprio.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ static inline int get_current_ioprio(void)
return __get_task_ioprio(current);
}

/*
* For inheritance, return the highest of the two given priorities
*/
extern int ioprio_best(unsigned short aprio, unsigned short bprio);

extern int set_task_ioprio(struct task_struct *task, int ioprio);

#ifdef CONFIG_BLOCK
Expand Down

0 comments on commit fc25545

Please sign in to comment.