Replace the manual ternary "s" pluralization with str_plural() to
simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
* Copyright (c) 2010 Erik Larsson
*/
+#include <linux/string_choices.h>
#include <linux/writeback.h>
#include <linux/iomap.h>
if (IS_ERR(rl)) {
err = PTR_ERR(rl);
ntfs_debug("Failed to allocate cluster%s, error code %i.",
- ntfs_bytes_to_cluster(vol, new_size) > 1 ? "s" : "",
+ str_plural(ntfs_bytes_to_cluster(vol, new_size)),
err);
goto folio_err_out;
}