patch-2.4.25 linux-2.4.25/fs/readdir.c
Next file: linux-2.4.25/fs/smbfs/ChangeLog
Previous file: linux-2.4.25/fs/partitions/check.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/fs/readdir.c
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.24/fs/readdir.c linux-2.4.25/fs/readdir.c
@@ -69,6 +69,7 @@
loff_t n = file->f_pos - 2;
spin_lock(&dcache_lock);
+ list_del(&cursor->d_child);
p = file->f_dentry->d_subdirs.next;
while (n && p != &file->f_dentry->d_subdirs) {
struct dentry *next;
@@ -77,7 +78,6 @@
n--;
p = p->next;
}
- list_del(&cursor->d_child);
list_add_tail(&cursor->d_child, p);
spin_unlock(&dcache_lock);
}
@@ -146,6 +146,7 @@
}
spin_unlock(&dcache_lock);
}
+ UPDATE_ATIME(dentry->d_inode);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)