From patchwork Thu Jun 10 19:16:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jvrao X-Patchwork-Id: 105448 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5AJH00S019966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 10 Jun 2010 19:17:35 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OMnFG-0004rO-0Y; Thu, 10 Jun 2010 19:16:54 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1OMnFE-0004rA-BT for v9fs-developer@lists.sourceforge.net; Thu, 10 Jun 2010 19:16:52 +0000 X-ACL-Warn: Received: from e39.co.us.ibm.com ([32.97.110.160]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1OMnFC-00021g-2x for v9fs-developer@lists.sourceforge.net; Thu, 10 Jun 2010 19:16:52 +0000 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e39.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o5AJ7e01000508 for ; Thu, 10 Jun 2010 13:07:40 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5AJGXD4063256 for ; Thu, 10 Jun 2010 13:16:36 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o5AJGXHO030544 for ; Thu, 10 Jun 2010 13:16:33 -0600 Received: from [127.0.0.1] (IBM-2AECC81F76A.beaverton.ibm.com [9.47.22.70]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o5AJGVrX030469 for ; Thu, 10 Jun 2010 13:16:33 -0600 Message-ID: <4C113A11.9090306@linux.vnet.ibm.com> Date: Thu, 10 Jun 2010 12:16:33 -0700 From: "Venkateswararao Jujjuri (JV)" Organization: IBM User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: V9FS Developers X-Enigmail-Version: 0.96.0 X-Spam-Score: -0.3 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.3 AWL AWL: From: address is in the auto white-list X-Headers-End: 1OMnFC-00021g-2x Subject: [V9fs-developer] [PATCH] Bug fix on top of Mohan's TMKNOD patch (client) X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 10 Jun 2010 19:17:36 +0000 (UTC) diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 20326cf..3ecc3c2 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -1668,8 +1668,8 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dent } name = (char *) dentry->d_name.name; - err = p9_client_mknod_dotl(dfid, name, mode, new_encode_dev(rdev), - gid, &qid); + + err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid); if (err < 0) goto error; diff --git a/net/9p/client.c b/net/9p/client.c index 6cb8cb6..ccdcf17 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -1628,11 +1628,10 @@ int p9_client_mknod_dotl(struct p9_fid *fid, char *name, clnt = fid->clnt; P9_DPRINTK(P9_DEBUG_9P, ">>> TMKNOD fid %d name %s mode %d major %d " "minor %d\n", fid->fid, name, mode, MAJOR(rdev), MINOR(rdev)); - req = p9_client_rpc(clnt, P9_TMKNOD, "dsddd", fid->fid, name, mode, - rdev, gid); + req = p9_client_rpc(clnt, P9_TMKNOD, "dsdddd", fid->fid, name, mode, + MAJOR(rdev), MINOR(rdev), gid); if (IS_ERR(req)) { - err = PTR_ERR(req); - goto error; + return PTR_ERR(req); } err = p9pdu_readf(req->rc, clnt->proto_version, "Q", qid);