diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-11 11:50:33 +0200 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-05-25 11:41:13 +0900 |
| commit | 2ef58454aa91923e6570ec8d6a211fd6d22b7569 (patch) | |
| tree | 628b1186b2f546b2bf8baa0ff498a44f97867a3f /fs | |
| parent | 7e62b8b74327d70ed98778a516c2748d48f7276c (diff) | |
| download | linux-next-history-2ef58454aa91923e6570ec8d6a211fd6d22b7569.tar.gz | |
ntfs: use str_plural in ntfs_attr_make_non_resident
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>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/ntfs/attrib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c index 421c6cdcbb530..9d676375f25cb 100644 --- a/fs/ntfs/attrib.c +++ b/fs/ntfs/attrib.c @@ -16,6 +16,7 @@ * Copyright (c) 2010 Erik Larsson */ +#include <linux/string_choices.h> #include <linux/writeback.h> #include <linux/iomap.h> @@ -1855,7 +1856,7 @@ int ntfs_attr_make_non_resident(struct ntfs_inode *ni, const u32 data_size) 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; } |
