summaryrefslogtreecommitdiff
path: root/fs/fs_internal.c
Commit message (Collapse)AuthorAgeFilesLines
* fs: avoid possible NULL dereference in fs_devreadHeinrich Schuchardt2017-11-291-1/+2
| | | | | | | | | It is unwise to first dereference a variable and then to check if it was NULL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Marek Behun <marek.behun@nic.cz> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* fs: Create a common fs_devread for ext4/reiserfs/zfsMarek BehĂșn2017-10-021-0/+92
The ext4, reiserfs and zfs filesystems all have their own implementation of the same function, *_devread. Generalize this function into fs_devread and put the code into fs/fs_internal.c. Signed-off-by: Marek Behun <marek.behun@nic.cz> [trini: Move fs/fs_internal.o hunk to the end of fs/Makefile as all cases need it] Signed-off-by: Tom Rini <trini@konsulko.com>