From: Tejun Heo Date: Thu, 28 Nov 2013 19:54:24 +0000 (-0500) Subject: sysfs, kernfs: introduce kernfs_create_file[_ns]() X-Git-Tag: v3.14-rc1~151^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496f73944a4a974f89d48920bf368aec8841b195;p=pandora-kernel.git sysfs, kernfs: introduce kernfs_create_file[_ns]() Introduce kernfs interface to create a file which takes and returns sysfs_dirents. The actual file creation part is separated out from sysfs_add_file_mode_ns() into kernfs_create_file_ns(). The former now only decides the kernfs_ops to use and the file's size and invokes the latter. This patch doesn't introduce behavior changes. v2: Dummy implementation for !CONFIG_SYSFS updated to return -ENOSYS. Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed