From: Tejun Heo Date: Tue, 1 Oct 2013 21:42:00 +0000 (-0400) Subject: sysfs: add sysfs_open_file->sd and ->file X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~64^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcafe4eea3e58a60e9c2c63781700a9ab1d70f93;p=pandora-kernel.git sysfs: add sysfs_open_file->sd and ->file sysfs will be converted to use seq_file for read path, which will make it difficult to pass around multiple pointers directly. This patch adds sysfs_open_file->sd and ->file so that we can reach all the necessary data structures from sysfs_open_file. flush_write_buffer() is updated to drop @dentry which was used to discover the sysfs_dirent as it's now available through sysfs_open_file->sd. This patch doesn't cause any behavior difference. Signed-off-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed