sunrpc/cache: convert to use string_escape_str()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 28 Nov 2014 15:50:28 +0000 (17:50 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 9 Dec 2014 16:30:20 +0000 (11:30 -0500)
commit1b2e122d167d8983775eb57d55349c331e6aa6c7
treefdddc65373252c4ba53a97e7ffafd8c43ac6f2a5
parentacf06a7fa12070abb3eab24fc4bc30e361a7c416
sunrpc/cache: convert to use string_escape_str()

There is nice kernel helper to escape a given strings by provided rules. Let's
use it instead of custom approach.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[bfields@redhat.com: fix length calculation]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/cache.c