diff options
author | 2017-08-14 13:14:36 -0400 | |
---|---|---|
committer | 2017-08-14 13:14:36 -0400 | |
commit | 1724c7c0c9494dcbdd7f630f29e1e8427cb231d1 (patch) | |
tree | d7c7ad032289cdf0633feee4bd6ec5800b666ca7 /fs/filesystems.c | |
parent | drm/atomic: Handle -EDEADLK with out-fences correctly (diff) | |
parent | Linux 4.13-rc5 (diff) | |
download | linux-rng-1724c7c0c9494dcbdd7f630f29e1e8427cb231d1.tar.xz linux-rng-1724c7c0c9494dcbdd7f630f29e1e8427cb231d1.zip |
Merge origin/master into drm-misc-fixes
Backmerge 4.13-rc5 into drm-misc-fixes, it was getting a
little stale.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'fs/filesystems.c')
-rw-r--r-- | fs/filesystems.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/filesystems.c b/fs/filesystems.c index cac75547d35c..a920ad2629ac 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -33,9 +33,10 @@ static struct file_system_type *file_systems; static DEFINE_RWLOCK(file_systems_lock); /* WARNING: This can be used only if we _already_ own a reference */ -void get_filesystem(struct file_system_type *fs) +struct file_system_type *get_filesystem(struct file_system_type *fs) { __module_get(fs->owner); + return fs; } void put_filesystem(struct file_system_type *fs) @@ -275,8 +276,10 @@ struct file_system_type *get_fs_type(const char *name) int len = dot ? dot - name : strlen(name); fs = __get_fs_type(name, len); - if (!fs && (request_module("fs-%.*s", len, name) == 0)) + if (!fs && (request_module("fs-%.*s", len, name) == 0)) { fs = __get_fs_type(name, len); + WARN_ONCE(!fs, "request_module fs-%.*s succeeded, but still no fs?\n", len, name); + } if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) { put_filesystem(fs); |