exfat: add necessary header for vmalloc

This fixes building on Linux 4.4.

Signed-off-by: HiGarfield <higarfield@126.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
1 file changed
tree: d617d815ec305c794328cfab1f585446f78bc463
  1. .github/
  2. balloc.c
  3. cache.c
  4. dir.c
  5. exfat_fs.h
  6. exfat_raw.h
  7. fatent.c
  8. file.c
  9. inode.c
  10. Kconfig
  11. Makefile
  12. misc.c
  13. namei.c
  14. nls.c
  15. README.md
  16. super.c
README.md

exFAT filesystem

This is the exfat filesystem for support from the linux 4.1 kernel to the latest kernel.

Installing as a stand-alone module

Install prerequisite package for Fedora, RHEL:

	yum install kernel-devel-$(uname -r)

Build step:

	make
	sudo make install

To load the driver manually, run this as root:

	modprobe exfat

Installing as a part of the kernel

  1. Let's take [linux] as the path to your kernel source dir.
	cd [linux]
	cp -ar exfat [linux]/fs/
  1. edit [linux]/fs/Kconfig
	source "fs/fat/Kconfig"
	+source "fs/exfat/Kconfig"
	source "fs/ntfs/Kconfig"
  1. edit [linux]/fs/Makefile
	obj-$(CONFIG_FAT_FS)          += fat/
	+obj-$(CONFIG_EXFAT_FS)       += exfat/
	obj-$(CONFIG_BFS_FS)          += bfs/
  1. make menuconfig and set exfat
	File systems  --->
		DOS/FAT/NT Filesystems  --->
			<M> exFAT filesystem support
			(utf8) Default iocharset for exFAT

build your kernel