ocfs2: fix write() performance regression
authorMark Fasheh <mark.fasheh@oracle.com>
Mon, 12 Nov 2007 22:09:22 +0000 (14:09 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:37:01 +0000 (09:37 -0800)
commit78fd2b3595b7c73b109154f1abe0f1d2b85dbbe6
tree29c0812e58c473bb2e3cea26b276334842201f24
parentf0ae3188daf70ed07a4dfbeb133bef3a92838a15
ocfs2: fix write() performance regression

patch 4e9563fd55ff4479f2b118d0757d121dd0cfc39c in mainline.

ocfs2: fix write() performance regression

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