]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ocfs2: fix write() performance regression
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 1 Nov 2007 18:37:48 +0000 (11:37 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Tue, 6 Nov 2007 23:35:29 +0000 (15:35 -0800)
commit4e9563fd55ff4479f2b118d0757d121dd0cfc39c
tree604066cd76db3d40896263d4a24a7fd5d9824eb2
parent9ea2d32f40434589ea0e136373f7d1545afb411f
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>
fs/ocfs2/aops.c