commit | c8f554b947e80a90e1b43bbd4fd26c27765b5f96 | [log] [tgz] |
---|---|---|
author | Benjamin Marzinski <bmarzins@redhat.com> | Tue Jan 06 10:47:50 2009 -0600 |
committer | Steven Whitehouse <swhiteho@redhat.com> | Wed Jan 07 08:58:28 2009 +0000 |
tree | 748e71063be2f9fab57d765e78d1571c86fc1a91 | |
parent | 0027ce681e3cd49fa34dab023574611f4384291d [diff] |
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 <bmarzins@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>