]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Create fs_context-aware mount_bdev() replacement
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Mar 2019 14:15:16 +0000 (14:15 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 5 Sep 2019 18:34:22 +0000 (14:34 -0400)
commit5b3bfd8f315c75a1dd06d827dd1fb89b98e020df
tree4b8bfb4bbfbeb53c75b14f4522233ed3216749aa
parent5fd8558df26a63a8008e877a8c61389a43e27ec7
vfs: Create fs_context-aware mount_bdev() replacement

Create a function, get_tree_bdev(), that is fs_context-aware and a
->get_tree() counterpart of mount_bdev().

It caches the block device pointer in the fs_context struct so that this
information can be passed into sget_fc()'s test and set functions.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jens Axboe <axboe@kernel.dk>
cc: linux-block@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/super.c
include/linux/fs_context.h