[GFS2] Fix lack of buffers in writepage bug
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 8 Aug 2006 17:23:19 +0000 (13:23 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 8 Aug 2006 17:23:19 +0000 (13:23 -0400)
commitf4387149ec71fed11535b49400bad17d22fdc935
tree749c7fa407a835a731d4fbb33c54ff71cf46e799
parentcc346d555f2c3eb4a63b2df6bf9c9947f0a92a01
[GFS2] Fix lack of buffers in writepage bug

In some cases we can enter write page without there being buffers
attached to the page. In this case the function to add gfs2_bufdata
to the buffers fails sliently causing further failures down the
stack.

This fix ensures that we always add buffers in writepage if they
didn't already exist (mmap is one way to trigger this).

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_address.c