summaryrefslogtreecommitdiff
path: root/fs/filesystems.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2002-12-29 19:52:11 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-29 19:52:11 -0800
commit2cea9523ee55d8bda0b14287d5761c956868572c (patch)
treee87ee6049e318e98c42af0a458502404aa94918b /fs/filesystems.c
parent32cce74ba349764f1bda932748500232604e960d (diff)
[PATCH] more obsolete module API fixes
completly remove the old try_inc_mod_count()
Diffstat (limited to 'fs/filesystems.c')
-rw-r--r--fs/filesystems.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/filesystems.c b/fs/filesystems.c
index 223305689d30..824b04137c3a 100644
--- a/fs/filesystems.c
+++ b/fs/filesystems.c
@@ -20,7 +20,7 @@
* We can access the fields of list element if:
* 1) spinlock is held or
* 2) we hold the reference to the module.
- * The latter can be guaranteed by call of try_inc_mod_count(); if it
+ * The latter can be guaranteed by call of try_module_get(); if it
* returned 0 we must skip the element, otherwise we got the reference.
* Once the reference is obtained we can drop the spinlock.
*/
@@ -153,8 +153,8 @@ static int fs_name(unsigned int index, char * buf)
read_lock(&file_systems_lock);
for (tmp = file_systems; tmp; tmp = tmp->next, index--)
- if (index <= 0 && try_inc_mod_count(tmp->owner))
- break;
+ if (index <= 0 && try_module_get(tmp->owner))
+ break;
read_unlock(&file_systems_lock);
if (!tmp)
return -EINVAL;
@@ -224,13 +224,13 @@ struct file_system_type *get_fs_type(const char *name)
read_lock(&file_systems_lock);
fs = *(find_filesystem(name));
- if (fs && !try_inc_mod_count(fs->owner))
+ if (fs && !try_module_get(fs->owner))
fs = NULL;
read_unlock(&file_systems_lock);
if (!fs && (request_module(name) == 0)) {
read_lock(&file_systems_lock);
fs = *(find_filesystem(name));
- if (fs && !try_inc_mod_count(fs->owner))
+ if (fs && !try_module_get(fs->owner))
fs = NULL;
read_unlock(&file_systems_lock);
}