summaryrefslogtreecommitdiffstats
path: root/fs/autofs4
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2007-02-20 13:58:09 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-20 17:10:15 -0800
commit22c8ca78f20724676b6006232bf06cc3e9299539 (patch)
tree2e92d122733505590c5df7906ac2590477b5806b /fs/autofs4
parent955eff5acc8b8cd1c7d4eec0229c35eaabe013db (diff)
downloadop-kernel-dev-22c8ca78f20724676b6006232bf06cc3e9299539.zip
op-kernel-dev-22c8ca78f20724676b6006232bf06cc3e9299539.tar.gz
[PATCH] fs: fix nobh data leak
nobh_prepare_write leaks data similarly to how simple_prepare_write did. Fix by not marking the page uptodate until nobh_commit_write time. Again, this could break weird use-cases, but none appear to exist in the tree. We can safely remove the set_page_dirty, because as the comment says, nobh_commit_write does set_page_dirty. If a filesystem wants to allocate backing store for a page dirtied via mmap, page_mkwrite is the suggested approach. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/autofs4')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud