Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1)cleanup smfs code for 2.6 and snapfs
[fs/lustre-release.git]
/
lustre
/
smfs
/
cache_space.c
diff --git
a/lustre/smfs/cache_space.c
b/lustre/smfs/cache_space.c
index
3f88fc7
..
9d3bd96
100644
(file)
--- a/
lustre/smfs/cache_space.c
+++ b/
lustre/smfs/cache_space.c
@@
-79,7
+79,7
@@
int cache_space_post_hook(struct inode *inode, struct dentry *dentry,
int cache_space_hook_init(struct super_block *sb)
{
int cache_space_hook_init(struct super_block *sb)
{
- struct smfs_super_info
*smfs_info = S2SMI(sb);
+ struct smfs_super_info *smfs_info = S2SMI(sb);
struct smfs_hook_ops *cache_hops;
int rc = 0;
ENTRY;
struct smfs_hook_ops *cache_hops;
int rc = 0;
ENTRY;
@@
-89,7
+89,7
@@
int cache_space_hook_init(struct super_block *sb)
if (!cache_hops) {
RETURN(-ENOMEM);
}
if (!cache_hops) {
RETURN(-ENOMEM);
}
- rc = smfs_register_hook_ops(s
b, cache_hops);
+ rc = smfs_register_hook_ops(s
mfs_info, cache_hops);
if (rc) {
smfs_free_hook_ops(cache_hops);
RETURN(rc);
if (rc) {
smfs_free_hook_ops(cache_hops);
RETURN(rc);
@@
-99,12
+99,11
@@
int cache_space_hook_init(struct super_block *sb)
RETURN(0);
}
RETURN(0);
}
-int cache_space_hook_exit(struct s
uper_block *sb
)
+int cache_space_hook_exit(struct s
mfs_super_info *smfs_info
)
{
{
- struct smfs_super_info *smfs_info = S2SMI(sb);
struct smfs_hook_ops *cache_hops;
struct smfs_hook_ops *cache_hops;
- cache_hops = smfs_unregister_hook_ops(s
b
, CACHE_HOOK);
+ cache_hops = smfs_unregister_hook_ops(s
mfs_info
, CACHE_HOOK);
smfs_free_hook_ops(cache_hops);
SMFS_CLEAN_CACHE_HOOK(smfs_info);
smfs_free_hook_ops(cache_hops);
SMFS_CLEAN_CACHE_HOOK(smfs_info);