]> git.baikalelectronics.ru Git - kernel.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)
commit1c700688992a3e5ffcce6719b586b1efe2fa9d33
tree604066cd76db3d40896263d4a24a7fd5d9824eb2
parent6d2d31b3777a7c27306c9af407a0fe71d90b7852
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