[PATCH] reiserfs: reiserfs hang and performance fix for data=journal mode
authorChris Mason <mason@suse.com>
Wed, 1 Feb 2006 11:06:49 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:26 +0000 (08:53 -0800)
commite0e851cf30f1a9bd2e2a7624e9810378d6a2b072
treea8cf33d9b22594fb5c1094bd8b15f2f315b53f2d
parentfc5cd582e9c934ddaf6f310179488932cd154794
[PATCH] reiserfs: reiserfs hang and performance fix for data=journal mode

In data=journal mode, reiserfs writepage needs to make sure not to trigger
transactions while being run under PF_MEMALLOC.  This patch makes sure to
redirty the page instead of forcing a transaction start in this case.

Also, calling filemap_fdata* in order to trigger io on the block device can
cause lock inversions on the page lock.  Instead, do simple batching from
flush_commit_list.

Signed-off-by: Chris Mason <mason@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/inode.c
fs/reiserfs/journal.c