sys/gnu/vfs/ext2fs: Cleanup __KERNEL__ related macros
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 30 May 2015 10:19:35 +0000 (19:19 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 4 Jun 2015 18:32:08 +0000 (03:32 +0900)
commit91d54c3f56dbfbf21f07f3eb5e0218525207e1c9
tree19a5e6840fdac8397740e3ab2a9c820e40891fc4
parent840b5f527f9cc02749e85e07108f036fe89fe731
sys/gnu/vfs/ext2fs: Cleanup __KERNEL__ related macros

- Add comments on EXT2_XXX(s) macros. These macros on dfly ext2 happen
  to be tricky and confusing as their arg types are not consistent.
  These macros are taken from e2fsprogs header (rather than macros of
  the same name in Linux kernel header) and made to work as a part of
  kernel filesystem code.

- Remove unused __KERNEL__ version of EXT2_XXX(s) macros. These are not
  compiled on dfly (and most of them result compile error if enabled on
  dfly ext2) since __KERNEL__ is designed to be Linux kernel specific
  code while dfly ext2 is made to work with userspace version of macros
  taken from e2fsprogs as mentioned above. Moreover, some of these
  __KERNEL__ version of macros are already deprecated on Linux kernel
  and have been removed from the e2fsprogs header accordingly, so there
  is no reason to keep it here as well.

- Compiling e2fsprogs does not require ext2_fs.h installed under
  /usr/include/... as it has its own copy of the ext2_fs.h in its source
  code that the dfly ext2 originally referred to.

- This commit makes no binary difference. Also this commit does not
  affect external userspace programs.

- (Note that dfly's ext2 seems to be broken currently)
sys/gnu/vfs/ext2fs/ext2_fs.h