minor patch for NFS client

Bill Hawes (whawes@star.net)
Mon, 21 Sep 1998 11:37:20 -0400


This is a multi-part message in MIME format.
--------------27BF0335DBBAB72557B534C1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The attached patch for the NFS client inode.c adds classification codes
to some error messages, and fixes a problem with releasing the hostname
buffer on an error exit from read_super.

Patch is against 2.1.120 but should apply cleanly to 2.1.122.

Regards,
Bill
--------------27BF0335DBBAB72557B534C1
Content-Type: text/plain; charset=us-ascii; name="nfs_120-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="nfs_120-patch"

--- linux-2.1.120/fs/nfs/inode.c.old Tue Sep 1 21:40:19 1998
+++ linux-2.1.120/fs/nfs/inode.c Sat Sep 5 17:36:22 1998
@@ -322,18 +322,20 @@
goto out_shutdown;

out_no_iod:
- printk("NFS: couldn't start rpciod!\n");
+ printk(KERN_WARNING "NFS: couldn't start rpciod!\n");
out_shutdown:
rpc_shutdown_client(server->client);
- goto out_unlock;
+ goto out_free_host;

out_no_client:
- printk("NFS: cannot create RPC client.\n");
+ printk(KERN_WARNING "NFS: cannot create RPC client.\n");
xprt_destroy(xprt);
- goto out_unlock;
+ goto out_free_host;

out_no_xprt:
- printk("NFS: cannot create RPC transport.\n");
+ printk(KERN_WARNING "NFS: cannot create RPC transport.\n");
+
+out_free_host:
kfree(server->hostname);
out_unlock:
unlock_super(sb);
@@ -393,9 +395,10 @@
tmp = head;
while ((tmp = tmp->next) != head) {
struct dentry *dentry = list_entry(tmp, struct dentry, d_alias);
+printk("nfs_free_dentries: found %s/%s, d_count=%d, hashed=%d\n",
+dentry->d_parent->d_name.name, dentry->d_name.name,
+dentry->d_count, !list_empty(&dentry->d_hash));
if (!dentry->d_count) {
-printk("nfs_free_dentries: freeing %s/%s, i_count=%d\n",
-dentry->d_parent->d_name.name, dentry->d_name.name, inode->i_count);
dget(dentry);
d_drop(dentry);
dput(dentry);

--------------27BF0335DBBAB72557B534C1--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/