introduce __block_write_begin
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Jun 2010 09:29:57 +0000 (11:29 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:47:32 +0000 (16:47 -0400)
commit6e1db88d536adcbbfe562b2d4b7d6425784fff12
tree8cfcb5a6190722db6249b2e4978f39247975abcf
parentf4e420dc423148fba637af1ab618fa8896dfb2d6
introduce __block_write_begin

Split up the block_write_begin implementation - __block_write_begin is a new
trivial wrapper for block_prepare_write that always takes an already
allocated page and can be either called from block_write_begin or filesystem
code that already has a page allocated.  Remove the handling of already
allocated pages from block_write_begin after switching all callers that
do it to __block_write_begin.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/buffer.c
fs/ext2/dir.c
fs/ext3/inode.c
fs/ext4/inode.c
fs/minix/inode.c
fs/nilfs2/dir.c
fs/reiserfs/inode.c
fs/sysv/itree.c
fs/ufs/inode.c
include/linux/buffer_head.h