mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user