fs: cleanup backingstore handling
All filesystem drivers which need a backingstore device do the same
ignoring of '/dev/' in the backingstore followed by a cdev_open. Add a
helper function for it and let the core handle the cdev. As a side
effect this makes sure that fsdev->cdev is also set when a device is
mounted without the leading '/dev/' which was previously ignored
by the mount code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d4f5bb1 commit ecb3aaa23b09c41f2ac8364f5ca72779467762e3
@Sascha Hauer Sascha Hauer authored on 27 Sep 2013
Showing 6 changed files
View
fs/cramfs/cramfs.c
View
fs/ext4/ext_barebox.c
View
fs/fat/fat.c
View
fs/fs.c
View
fs/ubifs/ubifs.c
View
include/fs.h