diff options
| author | Marek BehĂșn <[email protected]> | 2017-09-03 17:00:24 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-10-02 21:51:50 -0400 |
| commit | 5994e8b6432d1c6df1cad44771f02054dba893ff (patch) | |
| tree | f718e5d025648fd3121f89710e0f814de93fe493 /include | |
| parent | 85d8bf57131a21424b50e50884372e813345f09a (diff) | |
fs: Create a common fs_devread for ext4/reiserfs/zfs
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 <[email protected]>
[trini: Move fs/fs_internal.o hunk to the end of fs/Makefile as all
cases need it]
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/fs_internal.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/fs_internal.h b/include/fs_internal.h new file mode 100644 index 00000000000..9d6dddd8419 --- /dev/null +++ b/include/fs_internal.h @@ -0,0 +1,17 @@ +/* + * 2017 by Marek Behun <[email protected]> + * + * Derived from code in ext4/dev.c, which was based on reiserfs/dev.c + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef __U_BOOT_FS_INTERNAL_H__ +#define __U_BOOT_FS_INTERNAL_H__ + +#include <part.h> + +int fs_devread(struct blk_desc *, disk_partition_t *, lbaint_t, int, int, + char *); + +#endif /* __U_BOOT_FS_INTERNAL_H__ */ |
