diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-05-03 11:49:19 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-05-03 11:49:19 +0100 |
commit | 8f065d36508f283ee6cbeb05829f032d0b782a16 (patch) | |
tree | 3ebd2a660a5d13c773e16c024ce025df24a9b502 /fs/gfs2/inode.c | |
parent | 4f1de018215fb56940ce5793e11becd1e8cd6e44 (diff) | |
download | linux-8f065d36508f283ee6cbeb05829f032d0b782a16.tar.gz linux-8f065d36508f283ee6cbeb05829f032d0b782a16.tar.bz2 linux-8f065d36508f283ee6cbeb05829f032d0b782a16.zip |
GFS2: Improve bug trap code in ->releasepage()
If the buffer is dirty or pinned, then as well as printing a
warning, we should also refuse to release the page in
question.
Currently this can occur if there is a race between mmap()ed
writers and O_DIRECT on the same file. With the addition of
->launder_page() in the future, we should be able to close
this gap.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
0 files changed, 0 insertions, 0 deletions