From: Benjamin Marzinski Date: Tue, 6 Jan 2009 16:47:50 +0000 (-0600) Subject: GFS2: Fix typo in gfs_page_mkwrite() X-Git-Tag: v2.6.29-rc1~193^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f554b947e80a90e1b43bbd4fd26c27765b5f96;p=pandora-kernel.git GFS2: Fix typo in gfs_page_mkwrite() There is a typo in gfs2_page_mkwrite() gfs2_write_alloc_required() expects pos to be the offset in bytes. However, instead of the page index being shifted by by PAGE_CACHE_SHIFT, it was shifted by (PAGE_CACHE_SIZE - inode->i_blkbits). This patch simply shifts the page index by the proper amount. Signed-off-by: Benjamin Marzinski Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed