lkml.org 
[lkml]   [1997]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectminor patch for 2.1.55 fs/dcache
The attached patch checks the memory allocation in d_alloc_root, and
fills in the correct hash for a root qstr.

Regards,
Bill--- fs/dcache.c.old Sat Sep 6 16:03:33 1997
+++ fs/dcache.c Fri Sep 12 09:39:08 1997
@@ -211,7 +232,9 @@

if (root_inode) {
- res = d_alloc(NULL, &(const struct qstr) { "/", 1, 0 });
- res->d_parent = res;
- d_instantiate(res, root_inode);
+ res = d_alloc(NULL, &(const struct qstr) { "/", 1, 47 });
+ if (res) {
+ res->d_parent = res;
+ d_instantiate(res, root_inode);
+ }
}
return res;
@@ -345,5 +368,5 @@

/*
- * We cannibalize "newdentry" when moving dentry on top of it,
+ * We cannibalize "target" when moving dentry on top of it,
* because it's going to be thrown away anyway. We could be more
* polite about it, though.
\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.086 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site