]> git.karo-electronics.de Git - linux-beck.git/commit
sysfs: remove sysfs_buffer->ops
authorTejun Heo <tj@kernel.org>
Tue, 1 Oct 2013 21:41:57 +0000 (17:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Oct 2013 00:04:34 +0000 (17:04 -0700)
commit375b611e60f7c1ce6913417ca254efe5523f1a72
treeaf7c2f99afad20b6e5742175b39687c1fb010ae6
parentaea585ef8fa6516395022e9d2fed6ec5014128bc
sysfs: remove sysfs_buffer->ops

Currently, sysfs_ops is fetched during sysfs_open_file() and cached in
sysfs_buffer->ops to be used while the file is open.  This patch
removes the caching and makes each operation directly fetch sysfs_ops.

This patch doesn't introduce any behavior difference and is to prepare
for merging regular and bin file supports.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c