Lines Matching refs:fs

38 struct file_system_type *get_filesystem(struct file_system_type *fs)  in get_filesystem()  argument
40 __module_get(fs->owner); in get_filesystem()
41 return fs; in get_filesystem()
44 void put_filesystem(struct file_system_type *fs) in put_filesystem() argument
46 module_put(fs->owner); in put_filesystem()
72 int register_filesystem(struct file_system_type * fs) in register_filesystem() argument
77 if (fs->parameters && in register_filesystem()
78 !fs_validate_description(fs->name, fs->parameters)) in register_filesystem()
81 BUG_ON(strchr(fs->name, '.')); in register_filesystem()
82 if (fs->next) in register_filesystem()
85 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem()
89 *p = fs; in register_filesystem()
108 int unregister_filesystem(struct file_system_type * fs) in unregister_filesystem() argument
115 if (fs == *tmp) { in unregister_filesystem()
116 *tmp = fs->next; in unregister_filesystem()
117 fs->next = NULL; in unregister_filesystem()
263 struct file_system_type *fs; in __get_fs_type() local
266 fs = *(find_filesystem(name, len)); in __get_fs_type()
267 if (fs && !try_module_get(fs->owner)) in __get_fs_type()
268 fs = NULL; in __get_fs_type()
270 return fs; in __get_fs_type()
275 struct file_system_type *fs; in get_fs_type() local
279 fs = __get_fs_type(name, len); in get_fs_type()
280 if (!fs && (request_module("fs-%.*s", len, name) == 0)) { in get_fs_type()
281 fs = __get_fs_type(name, len); in get_fs_type()
282 if (!fs) in get_fs_type()
287 if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) { in get_fs_type()
288 put_filesystem(fs); in get_fs_type()
289 fs = NULL; in get_fs_type()
291 return fs; in get_fs_type()