[PATCH 02/15] sysfs: remove sysfs_buffer->needs_read_fill

2013-10-01 Thread Tejun Heo
->needs_read_fill is used to implement the following behaviors. 1. Ensure buffer filling on the first read. 2. Force buffer filling after a write. 3. Force buffer filling after a successful poll. However, #2 and #3 don't really work as sysfs doesn't reset file position. While the read buffer

[PATCH 02/15] sysfs: remove sysfs_buffer-needs_read_fill

2013-10-01 Thread Tejun Heo
-needs_read_fill is used to implement the following behaviors. 1. Ensure buffer filling on the first read. 2. Force buffer filling after a write. 3. Force buffer filling after a successful poll. However, #2 and #3 don't really work as sysfs doesn't reset file position. While the read buffer