Lines Matching defs:fs
3 * linux/fs/filesystems.c
11 #include <linux/fs.h>
38 struct file_system_type *get_filesystem(struct file_system_type *fs)
40 __module_get(fs->owner);
41 return fs;
44 void put_filesystem(struct file_system_type *fs)
46 module_put(fs->owner);
61 * @fs: the file system structure
72 int register_filesystem(struct file_system_type * fs)
77 if (fs->parameters &&
78 !fs_validate_description(fs->name, fs->parameters))
81 BUG_ON(strchr(fs->name, '.'));
82 if (fs->next)
85 p = find_filesystem(fs->name, strlen(fs->name));
89 *p = fs;
98 * @fs: filesystem to unregister
108 int unregister_filesystem(struct file_system_type * fs)
115 if (fs == *tmp) {
116 *tmp = fs->next;
117 fs->next = NULL;
263 struct file_system_type *fs;
266 fs = *(find_filesystem(name, len));
267 if (fs && !try_module_get(fs->owner))
268 fs = NULL;
270 return fs;
275 struct file_system_type *fs;
279 fs = __get_fs_type(name, len);
280 if (!fs && (request_module("fs-%.*s", len, name) == 0)) {
281 fs = __get_fs_type(name, len);
282 if (!fs)
283 pr_warn_once("request_module fs-%.*s succeeded, but still no fs?\n",
287 if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) {
288 put_filesystem(fs);
289 fs = NULL;
291 return fs;