vfs: remove SLAB_MEM_SPREAD flag usage
[linux-2.6-microblaze.git] / fs / inode.c
index 91048c4..d2e8e38 100644 (file)
@@ -588,7 +588,8 @@ void dump_mapping(const struct address_space *mapping)
        }
 
        dentry_ptr = container_of(dentry_first, struct dentry, d_u.d_alias);
-       if (get_kernel_nofault(dentry, dentry_ptr)) {
+       if (get_kernel_nofault(dentry, dentry_ptr) ||
+           !dentry.d_parent || !dentry.d_name.name) {
                pr_warn("aops:%ps ino:%lx invalid dentry:%px\n",
                                a_ops, ino, dentry_ptr);
                return;
@@ -2285,7 +2286,7 @@ void __init inode_init(void)
                                         sizeof(struct inode),
                                         0,
                                         (SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|
-                                        SLAB_MEM_SPREAD|SLAB_ACCOUNT),
+                                        SLAB_ACCOUNT),
                                         init_once);
 
        /* Hash may have been set up in inode_init_early */