]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Fix typo in gfs_page_mkwrite()
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 6 Jan 2009 16:47:50 +0000 (10:47 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 7 Jan 2009 08:58:28 +0000 (08:58 +0000)
commit70ed06ca253a23674542cedc4e1620efb444c180
tree748e71063be2f9fab57d765e78d1571c86fc1a91
parent818a299713af1a9f22fc4cbd310798c66b692d47
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>
fs/gfs2/ops_file.c