nilfs2: move ioctl interface and disk layout to uapi separately
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 2 Aug 2016 21:05:30 +0000 (14:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 23:35:21 +0000 (19:35 -0400)
commite63e88bc53bac7e4c3f592f8126c51a7569be673
tree6e5855b0b227b520f1590afec9def6e5c47b4bee
parent4ce5c3426cbe9193f82345fb103e17dc3335eb4f
nilfs2: move ioctl interface and disk layout to uapi separately

The header file "include/linux/nilfs2_fs.h" is composed of parts for
ioctl and disk format, and both are intended to be shared with user
space programs.

This moves them to the uapi directory "include/uapi/linux" splitting the
file to "nilfs2_api.h" and "nilfs2_ondisk.h".  The following minor
changes are accompanied by this migration:

 - nilfs_direct_node struct in nilfs2/direct.h is converged to
   nilfs2_ondisk.h because it's an on-disk structure.
 - inline functions nilfs_rec_len_from_disk() and
   nilfs_rec_len_to_disk() are moved to nilfs2/dir.c.

Link: http://lkml.kernel.org/r/1465825507-3407-4-git-send-email-konishi.ryusuke@lab.ntt.co.jp
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 files changed:
Documentation/filesystems/nilfs2.txt
Documentation/ioctl/ioctl-number.txt
MAINTAINERS
fs/nilfs2/bmap.h
fs/nilfs2/btree.h
fs/nilfs2/cpfile.c
fs/nilfs2/cpfile.h
fs/nilfs2/dat.h
fs/nilfs2/dir.c
fs/nilfs2/direct.h
fs/nilfs2/ifile.h
fs/nilfs2/ioctl.c
fs/nilfs2/nilfs.h
fs/nilfs2/segment.h
fs/nilfs2/sufile.c
fs/nilfs2/sufile.h
include/linux/nilfs2_fs.h [deleted file]
include/uapi/linux/nilfs2_api.h [new file with mode: 0644]
include/uapi/linux/nilfs2_ondisk.h [new file with mode: 0644]