FS / libfs: Implement simple_write_to_buffer
authorJiri Slaby <jslaby@suse.cz>
Sat, 1 May 2010 21:51:22 +0000 (23:51 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 10 May 2010 21:08:17 +0000 (23:08 +0200)
It will be used in suspend code and serves as an easy wrap around
copy_from_user. Similar to simple_read_from_buffer, it takes care
of transfers with proper lengths depending on available and count
parameters and advances ppos appropriately.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

No differences found