]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mtd: switch ubi_open_volume_path() to vfs_stat()"
authorRichard Weinberger <richard@nod.at>
Sun, 12 Jun 2016 21:37:53 +0000 (23:37 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Jun 2016 08:51:42 +0000 (10:51 +0200)
commitb81a041cadc7fdc82e3a226f915dfd9b0ad0e7cd
tree738dda7e226f86ba2b875296828a85421834ea14
parent10e61ccbce8e2b894f1a1d40e8bf8fa3a1578e1a
Revert "mtd: switch ubi_open_volume_path() to vfs_stat()"

This reverts commit ca4e4339260c2e435f630322d9d84dae9d237abd.

vfs_stat() can only be used on user supplied buffers.
UBI's kapi.c is the API to the kernel and therefore vfs_stat()
is inappropriate.

This solves the problem that mounting any UBIFS will immediately
fail with -EINVAL.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/kapi.c