diff options
author | David Howells <dhowells@redhat.com> | 2017-07-04 17:25:16 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-06 03:27:09 -0400 |
commit | ee416bcdba9975065de571e09de1f7ebfde2156a (patch) | |
tree | 20aeec2addf524142ca334c6507c9f4d3a197fdd /fs/filesystems.c | |
parent | dd111b31e951c4ffb3a525b51b11d240118693c1 (diff) | |
download | op-kernel-dev-ee416bcdba9975065de571e09de1f7ebfde2156a.zip op-kernel-dev-ee416bcdba9975065de571e09de1f7ebfde2156a.tar.gz |
VFS: Make get_filesystem() return the affected filesystem
Make get_filesystem() return a pointer to the filesystem on which it just
got a ref.
Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/filesystems.c')
-rw-r--r-- | fs/filesystems.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/filesystems.c b/fs/filesystems.c index cac7554..591e52d 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) |