summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorChristoph Hellwig2010-06-04 11:29:56 +0200
committerAl Viro2010-08-09 22:47:31 +0200
commitf4e420dc423148fba637af1ab618fa8896dfb2d6 (patch)
treedf0e81f5f4b8448dd6b3929e5537dcc46e7d7dde /fs/buffer.c
parentget rid of cont_write_begin_newtrunc (diff)
downloadkernel-qcow2-linux-f4e420dc423148fba637af1ab618fa8896dfb2d6.tar.gz
kernel-qcow2-linux-f4e420dc423148fba637af1ab618fa8896dfb2d6.tar.xz
kernel-qcow2-linux-f4e420dc423148fba637af1ab618fa8896dfb2d6.zip
clean up write_begin usage for directories in pagecache
For filesystem that implement directories in pagecache we call block_write_begin with an already allocated page for this code, while the normal regular file write path uses the default block_write_begin behaviour. Get rid of the __foofs_write_begin helper and opencode the normal write_begin call in foofs_write_begin, while adding a new foofs_prepare_chunk helper for the directory code. The added benefit is that foofs_prepare_chunk has a much saner calling convention. Note that the interruptible flag passed into block_write_begin is always ignored if we already pass in a page (see next patch for details), and we never were doing truncations of exessive blocks for this case either so we can switch directly to block_write_begin_newtrunc. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions