alistair23-linux/fs/sysfs
Tejun Heo 73d9714627 sysfs: copy bin mmap support from fs/sysfs/bin.c to fs/sysfs/file.c
sysfs bin file handling will be merged into the regular file support.
This patch copies mmap support from bin so that fs/sysfs/file.c can
handle mmapping bin files.

The code is copied mostly verbatim with the following updates.

* ->mmapped and ->vm_ops are added to sysfs_open_file and bin_buffer
  references are replaced with sysfs_open_file ones.

* Symbols are prefixed with sysfs_.

* sysfs_unmap_bin_file() grabs sysfs_open_dirent and traverses
  ->files.  Invocation of this function is added to
  sysfs_addrm_finish().

* sysfs_bin_mmap() is added to sysfs_bin_operations.

This is a preparation and the new mmap path isn't used yet.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-05 17:27:40 -07:00
..
bin.c sysfs: collapse fs/sysfs/bin.c::fill_read() into read() 2013-10-05 17:27:40 -07:00
dir.c sysfs: copy bin mmap support from fs/sysfs/bin.c to fs/sysfs/file.c 2013-10-05 17:27:40 -07:00
file.c sysfs: copy bin mmap support from fs/sysfs/bin.c to fs/sysfs/file.c 2013-10-05 17:27:40 -07:00
group.c sysfs: introduce [__]sysfs_remove() 2013-10-03 16:38:52 -07:00
inode.c sysfs: introduce [__]sysfs_remove() 2013-10-03 16:38:52 -07:00
Kconfig
Makefile
mount.c sysfs: drop kobj_ns_type handling 2013-09-26 15:30:22 -07:00
symlink.c sysfs: remove sysfs_addrm_cxt->parent_sd 2013-10-03 16:16:43 -07:00
sysfs.h sysfs: copy bin mmap support from fs/sysfs/bin.c to fs/sysfs/file.c 2013-10-05 17:27:40 -07:00