Lines Matching full:fs

3  *  linux/fs/filesystems.c
11 #include <linux/fs.h>
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()
61 * @fs: the file system structure
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()
98 * @fs: filesystem to unregister
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()
256 struct file_system_type *fs; in __get_fs_type() local
259 fs = *(find_filesystem(name, len)); in __get_fs_type()
260 if (fs && !try_module_get(fs->owner)) in __get_fs_type()
261 fs = NULL; in __get_fs_type()
263 return fs; in __get_fs_type()
268 struct file_system_type *fs; in get_fs_type() local
272 fs = __get_fs_type(name, len); in get_fs_type()
273 if (!fs && (request_module("fs-%.*s", len, name) == 0)) { in get_fs_type()
274 fs = __get_fs_type(name, len); in get_fs_type()
275 if (!fs) in get_fs_type()
276 pr_warn_once("request_module fs-%.*s succeeded, but still no fs?\n", in get_fs_type()
280 if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) { in get_fs_type()
281 put_filesystem(fs); in get_fs_type()
282 fs = NULL; in get_fs_type()
284 return fs; in get_fs_type()