diff options
author | Hugh Dickins <hugh@veritas.com> | 2008-02-04 22:28:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 09:44:15 -0800 |
commit | d3602444e1e3485890eea5f61366e19a287c00c4 (patch) | |
tree | f27cca0ce7c113c6b8f15f77abc3124faea9e2c8 /include/asm-sh/se.h | |
parent | 27d54b398ec0edea0e7417f003171017300e0efc (diff) | |
download | op-kernel-dev-d3602444e1e3485890eea5f61366e19a287c00c4.zip op-kernel-dev-d3602444e1e3485890eea5f61366e19a287c00c4.tar.gz |
shmem_getpage return page locked
In the new aops, write_begin is supposed to return the page locked: though
I've seen no ill effects, that's been overlooked in the case of
shmem_write_begin, and should be fixed. Then shmem_write_end must unlock the
page: do so _after_ updating i_size, as we found to be important in other
filesystems (though since shmem pages don't go the usual writeback route, they
never suffered from that corruption).
For shmem_write_begin to return the page locked, we need shmem_getpage to
return the page locked in SGP_WRITE case as well as SGP_CACHE case: let's
simplify the interface and return it locked even when SGP_READ.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-sh/se.h')
0 files changed, 0 insertions, 0 deletions