mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 00:35:01 +00:00
mm: swap: use str_true_false() helper function
Remove hard-coded strings by using the helper function str_true_false(). Link: https://lkml.kernel.org/r/20241016141040.79168-2-thorsten.blum@linux.dev Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
4a7bba1df0
commit
d3ea85c6c5
@ -889,8 +889,7 @@ struct folio *swapin_readahead(swp_entry_t entry, gfp_t gfp_mask,
|
||||
static ssize_t vma_ra_enabled_show(struct kobject *kobj,
|
||||
struct kobj_attribute *attr, char *buf)
|
||||
{
|
||||
return sysfs_emit(buf, "%s\n",
|
||||
enable_vma_readahead ? "true" : "false");
|
||||
return sysfs_emit(buf, "%s\n", str_true_false(enable_vma_readahead));
|
||||
}
|
||||
static ssize_t vma_ra_enabled_store(struct kobject *kobj,
|
||||
struct kobj_attribute *attr,
|
||||
|
Loading…
Reference in New Issue
Block a user