sysfs: remove sysfs_buffer->ops
authorTejun Heo <tj@kernel.org>
Tue, 1 Oct 2013 21:41:57 +0000 (17:41 -0400)
committerPawel Osmialowski <p.osmialowsk@mcdsrvbld02.digital.local>
Fri, 27 Mar 2015 17:13:09 +0000 (18:13 +0100)
commit502450a7be2e5c98dadf4678d534d8e994b81765
tree7adc665ee97c7b5bc16b387e8eaeadc5e4d65ba1
parent4a1b15772e8b04cabcf0d0aae501a340dadbe723
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