Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031402AbbD2R7D (ORCPT ); Wed, 29 Apr 2015 13:59:03 -0400 Received: from mailrelay103.isp.belgacom.be ([195.238.20.130]:13096 "EHLO mailrelay103.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030589AbbD2R67 (ORCPT ); Wed, 29 Apr 2015 13:58:59 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=ZT6Ny9SzQUL0U4sOn6xM6rLbT25dGdPOAe/imaXRw80= c=1 sm=2 a=yP7WKbA6wYyzbZtCucEA:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2B1EACTGkFV/+PL8VFcgwyBL7QLCAECBQGBAphCgUVNAQEBAQEBgQtBBYQILyOBGjeILwHIGIYWiUJlHYQXBY9GjGyML4lJI2BmAR4iHIFTPDGBAoFDAQEB From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Alexander Viro , Fabian Frederick , Boaz Harrosh , Benny Halevy , osd-dev@open-osd.org Subject: [PATCH 1/1 linux-next] exofs: convert simple_str to kstr Date: Wed, 29 Apr 2015 19:58:49 +0200 Message-Id: <1430330330-17481-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1226 Lines: 45 replace obsolete function. Signed-off-by: Fabian Frederick --- This is untested. fs/exofs/super.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/exofs/super.c b/fs/exofs/super.c index b795c56..b667f73 100644 --- a/fs/exofs/super.c +++ b/fs/exofs/super.c @@ -108,9 +108,14 @@ static int parse_options(char *options, struct exofs_mountopt *opts) opts->is_osdname = true; break; case Opt_pid: + { + int rc; + if (0 == match_strlcpy(str, &args[0], sizeof(str))) return -EINVAL; - opts->pid = simple_strtoull(str, NULL, 0); + rc = kstrtoull(str, 0, &opts->pid); + if (rc) + return rc; if (opts->pid < EXOFS_MIN_PID) { EXOFS_ERR("Partition ID must be >= %u", EXOFS_MIN_PID); @@ -118,6 +123,7 @@ static int parse_options(char *options, struct exofs_mountopt *opts) } s_pid = 1; break; + } case Opt_to: if (match_int(&args[0], &option)) return -EINVAL; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/