diff options
Diffstat (limited to 'fs/dcache.c')
| -rw-r--r-- | fs/dcache.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index aaca5e7970bc..19458d399502 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
| @@ -34,7 +34,6 @@ | |||
| 34 | #include <linux/swap.h> | 34 | #include <linux/swap.h> |
| 35 | #include <linux/bootmem.h> | 35 | #include <linux/bootmem.h> |
| 36 | 36 | ||
| 37 | /* #define DCACHE_DEBUG 1 */ | ||
| 38 | 37 | ||
| 39 | int sysctl_vfs_cache_pressure __read_mostly = 100; | 38 | int sysctl_vfs_cache_pressure __read_mostly = 100; |
| 40 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); | 39 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); |
| @@ -603,10 +602,6 @@ resume: | |||
| 603 | */ | 602 | */ |
| 604 | if (!list_empty(&dentry->d_subdirs)) { | 603 | if (!list_empty(&dentry->d_subdirs)) { |
| 605 | this_parent = dentry; | 604 | this_parent = dentry; |
| 606 | #ifdef DCACHE_DEBUG | ||
| 607 | printk(KERN_DEBUG "select_parent: descending to %s/%s, found=%d\n", | ||
| 608 | dentry->d_parent->d_name.name, dentry->d_name.name, found); | ||
| 609 | #endif | ||
| 610 | goto repeat; | 605 | goto repeat; |
| 611 | } | 606 | } |
| 612 | } | 607 | } |
| @@ -616,10 +611,6 @@ dentry->d_parent->d_name.name, dentry->d_name.name, found); | |||
| 616 | if (this_parent != parent) { | 611 | if (this_parent != parent) { |
| 617 | next = this_parent->d_u.d_child.next; | 612 | next = this_parent->d_u.d_child.next; |
| 618 | this_parent = this_parent->d_parent; | 613 | this_parent = this_parent->d_parent; |
| 619 | #ifdef DCACHE_DEBUG | ||
| 620 | printk(KERN_DEBUG "select_parent: ascending to %s/%s, found=%d\n", | ||
| 621 | this_parent->d_parent->d_name.name, this_parent->d_name.name, found); | ||
| 622 | #endif | ||
| 623 | goto resume; | 614 | goto resume; |
| 624 | } | 615 | } |
| 625 | out: | 616 | out: |
| @@ -798,7 +789,7 @@ struct dentry *d_alloc_name(struct dentry *parent, const char *name) | |||
| 798 | 789 | ||
| 799 | void d_instantiate(struct dentry *entry, struct inode * inode) | 790 | void d_instantiate(struct dentry *entry, struct inode * inode) |
| 800 | { | 791 | { |
| 801 | if (!list_empty(&entry->d_alias)) BUG(); | 792 | BUG_ON(!list_empty(&entry->d_alias)); |
| 802 | spin_lock(&dcache_lock); | 793 | spin_lock(&dcache_lock); |
| 803 | if (inode) | 794 | if (inode) |
| 804 | list_add(&entry->d_alias, &inode->i_dentry); | 795 | list_add(&entry->d_alias, &inode->i_dentry); |
