projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GFS2: Send some sensible sysfs stuff
[linux-2.6-block.git]
/
fs
/
gfs2
/
main.c
diff --git
a/fs/gfs2/main.c
b/fs/gfs2/main.c
index bb2cc303ac2921f2fc16675dbdb50e8abadc3f65..7cacfde321942c2149afbed5ba11a8ffa64077df 100644
(file)
--- a/
fs/gfs2/main.c
+++ b/
fs/gfs2/main.c
@@
-19,7
+19,7
@@
#include "gfs2.h"
#include "incore.h"
#include "gfs2.h"
#include "incore.h"
-#include "
ops_fstype
.h"
+#include "
super
.h"
#include "sys.h"
#include "util.h"
#include "glock.h"
#include "sys.h"
#include "util.h"
#include "glock.h"
@@
-30,6
+30,7
@@
static void gfs2_init_inode_once(void *foo)
inode_init_once(&ip->i_inode);
init_rwsem(&ip->i_rw_mutex);
inode_init_once(&ip->i_inode);
init_rwsem(&ip->i_rw_mutex);
+ INIT_LIST_HEAD(&ip->i_trunc_list);
ip->i_alloc = NULL;
}
ip->i_alloc = NULL;
}
@@
-42,7
+43,7
@@
static void gfs2_init_glock_once(void *foo)
INIT_LIST_HEAD(&gl->gl_holders);
gl->gl_lvb = NULL;
atomic_set(&gl->gl_lvb_count, 0);
INIT_LIST_HEAD(&gl->gl_holders);
gl->gl_lvb = NULL;
atomic_set(&gl->gl_lvb_count, 0);
- INIT_LIST_HEAD(&gl->gl_
reclaim
);
+ INIT_LIST_HEAD(&gl->gl_
lru
);
INIT_LIST_HEAD(&gl->gl_ail_list);
atomic_set(&gl->gl_ail_count, 0);
}
INIT_LIST_HEAD(&gl->gl_ail_list);
atomic_set(&gl->gl_ail_count, 0);
}
@@
-93,6
+94,12
@@
static int __init init_gfs2_fs(void)
if (!gfs2_rgrpd_cachep)
goto fail;
if (!gfs2_rgrpd_cachep)
goto fail;
+ gfs2_quotad_cachep = kmem_cache_create("gfs2_quotad",
+ sizeof(struct gfs2_quota_data),
+ 0, 0, NULL);
+ if (!gfs2_quotad_cachep)
+ goto fail;
+
error = register_filesystem(&gfs2_fs_type);
if (error)
goto fail;
error = register_filesystem(&gfs2_fs_type);
if (error)
goto fail;
@@
-112,6
+119,9
@@
fail_unregister:
fail:
gfs2_glock_exit();
fail:
gfs2_glock_exit();
+ if (gfs2_quotad_cachep)
+ kmem_cache_destroy(gfs2_quotad_cachep);
+
if (gfs2_rgrpd_cachep)
kmem_cache_destroy(gfs2_rgrpd_cachep);
if (gfs2_rgrpd_cachep)
kmem_cache_destroy(gfs2_rgrpd_cachep);
@@
-140,6
+150,7
@@
static void __exit exit_gfs2_fs(void)
unregister_filesystem(&gfs2_fs_type);
unregister_filesystem(&gfs2meta_fs_type);
unregister_filesystem(&gfs2_fs_type);
unregister_filesystem(&gfs2meta_fs_type);
+ kmem_cache_destroy(gfs2_quotad_cachep);
kmem_cache_destroy(gfs2_rgrpd_cachep);
kmem_cache_destroy(gfs2_bufdata_cachep);
kmem_cache_destroy(gfs2_inode_cachep);
kmem_cache_destroy(gfs2_rgrpd_cachep);
kmem_cache_destroy(gfs2_bufdata_cachep);
kmem_cache_destroy(gfs2_inode_cachep);