diff options
Diffstat (limited to 'fs/aufs/module.c')
-rw-r--r-- | fs/aufs/module.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/aufs/module.c b/fs/aufs/module.c index a7a4b3647..3268e62e4 100644 --- a/fs/aufs/module.c +++ b/fs/aufs/module.c @@ -59,11 +59,10 @@ static void au_cache_fin(void) /* excluding AuCache_HNOTIFY */ BUILD_BUG_ON(AuCache_HNOTIFY + 1 != AuCache_Last); - for (i = 0; i < AuCache_HNOTIFY; i++) - if (au_cachep[i]) { - kmem_cache_destroy(au_cachep[i]); - au_cachep[i] = NULL; - } + for (i = 0; i < AuCache_HNOTIFY; i++) { + kmem_cache_destroy(au_cachep[i]); + au_cachep[i] = NULL; + } } /* ---------------------------------------------------------------------- */ @@ -133,6 +132,10 @@ static int __init aufs_init(void) au_dir_roflags = au_file_roflags(O_DIRECTORY | O_LARGEFILE); + memcpy(aufs_iop_nogetattr, aufs_iop, sizeof(aufs_iop)); + for (i = 0; i < AuIop_Last; i++) + aufs_iop_nogetattr[i].getattr = NULL; + au_sbilist_init(); sysaufs_brs_init(); au_debug_init(); |