patch-2.2.0-pre1 linux/fs/dcache.c
Next file: linux/fs/devices.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Dec 28 00:35:12 1998
- Orig file:
v2.1.132/linux/fs/dcache.c
- Orig date:
Tue Dec 22 14:16:57 1998
diff -u --recursive --new-file v2.1.132/linux/fs/dcache.c linux/fs/dcache.c
@@ -592,9 +592,10 @@
struct list_head *head = d_hash(parent,hash);
struct list_head *tmp = head->next;
- while (tmp != head) {
+ for (;;) {
struct dentry * dentry = list_entry(tmp, struct dentry, d_hash);
-
+ if (tmp == head)
+ break;
tmp = tmp->next;
if (dentry->d_name.hash != hash)
continue;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov