Skip to contentSkip to conversation

seq_file-convert-seq_escape-to-use-seq_escape_str.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: seq_file: convert seq_escape() to use seq_escape_str()
has been removed from the -mm tree. Its filename was
seq_file-convert-seq_escape-to-use-seq_escape_str.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: seq_file: convert seq_escape() to use seq_escape_str()

Convert seq_escape() to use seq_escape_str() rather than open coding it.

Note, for now we leave it as an exported symbol due to some old code that can't tolerate ctype.h being (indirectly) included.

---

 fs/seq_file.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
fs/seq_file.c renamed from fs/seq_file.c~seq_file-convert-seq_escape-to-use-seq_escape_str +1 -6
@@ -392,12 +392,7 @@ EXPORT_SYMBOL(seq_escape_mem);
  */
 void seq_escape(struct seq_file *m, const char *s, const char *esc)
 {
-	char *buf;
-	size_t size = seq_get_buf(m, &buf);
-	int ret;
-
-	ret = string_escape_str(s, buf, size, ESCAPE_OCTAL, esc);
-	seq_commit(m, ret < size ? ret : -1);
+	seq_escape_str(m, s, ESCAPE_OCTAL, esc);
 }
 EXPORT_SYMBOL(seq_escape);
 

_

Patches currently in -mm which might be from [email protected] are