seq_file: Simplify __seq_puts()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 22 Apr 2024 10:24:07 +0000 (12:24 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 2 May 2024 14:28:20 +0000 (16:28 +0200)
commite035af9f6ebacd98774b1be2af58a5afd6d0d291
treeeb2f210e060b44674d6b790dcda401f88a340fdc
parent45751097aeb386eb239f6a8ed0ccfd7dabce068e
seq_file: Simplify __seq_puts()

Change the implementation of the out-of-line __seq_puts() to simply be
a seq_write() call instead of duplicating the overflow/memcpy logic.

Suggested-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/7cebc1412d8d1338a7e52cc9291d00f5368c14e4.1713781332.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/seq_file.c