]> git.baikalelectronics.ru Git - kernel.git/commit
libfs: Open code simple_commit_write into only user
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 12 Jan 2010 13:13:47 +0000 (15:13 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Mar 2010 18:00:16 +0000 (13:00 -0500)
commitd7be5f7d54b1dfbc38ac7c6df6968f09340d7fc4
tree5f643dc85181e1f2a63a906de316c3091c93c360
parenta16d70dd986d3f534a739461f00e379f16d2065b
libfs: Open code simple_commit_write into only user

* simple_commit_write was only called by simple_write_end.
  Open coding it makes it tiny bit less heavy on the arithmetic and
  much more readable.

* While at it use zero_user() for clearing a partial page.
* While at it add a docbook comment for simple_write_end.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/libfs.c