]> git.baikalelectronics.ru Git - kernel.git/commit
[GFS2] Use ->page_mkwrite() for mmap()
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 15 Oct 2007 14:40:33 +0000 (15:40 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:07:13 +0000 (08:07 +0000)
commitd01d0fa0997a7c8a6e3aaeb52ee5a8e58e946853
tree53f69f1b8d1cbc2849c6bac08ce7786f3ecd7447
parentfcb5d64b6e0cbd2d49ae39993b6b6b7dcb1308df
[GFS2] Use ->page_mkwrite() for mmap()

This cleans up the mmap() code path for GFS2 by implementing the
page_mkwrite function for GFS2. We are thus able to use the
generic filemap_fault function for our ->fault() implementation.

This now means that shared writable mappings will be much more
efficiently shared across the cluster if there is a reasonable
proportion of read activity (the greater proportion, the better).

As a side effect, it also reduces the size of the code, removes
special cases from readpage and readpages, and makes the code
path easier to follow.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/Makefile
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/ops_address.c
fs/gfs2/ops_file.c
fs/gfs2/ops_vm.c [deleted file]
fs/gfs2/ops_vm.h [deleted file]