From: Steven Whitehouse Date: Thu, 30 Nov 2006 15:14:32 +0000 (-0500) Subject: [GFS2] Don't flush everything on fdatasync X-Git-Tag: v2.6.20-rc1~145^2^2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c3de32872ef3c075e4dac04c0de8f86ac39f6f;p=pandora-kernel.git [GFS2] Don't flush everything on fdatasync The gfs2_fsync() function was doing a journal flush on each and every call. While this is correct, its also a lot of overhead. This patch means that on fdatasync flushes we rely on the VFS to flush the data for us and we don't do a journal flush unless we really need to. We have to do a journal flush for stuffed files though because they have the data and the inode metadata in the same block. Journaled files also need a journal flush too of course. Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed