]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ocfs2: fix write() performance regression
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 14 Nov 2007 21:33:27 +0000 (13:33 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:56 +0000 (09:25 -0800)
commit2e95672cd8684beddb2390ed5212ac50e1fd0dae
tree301501efe5bee4d262c6d09e8b4f060c6236ce42
parent0b81a81aecb120cff349eec24c2553e88c94991c
ocfs2: fix write() performance regression

ocfs2: fix write() performance regression

patch 4e9563fd55ff4479f2b118d0757d121dd0cfc39c in mainline.

On file systems which don't support sparse files, Ocfs2_map_page_blocks()
was reading blocks on appending writes. This caused write performance to
suffer dramatically. Fix this by detecting an appending write on a nonsparse
fs and skipping the read.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ocfs2/aops.c