From: Joel Becker Date: Fri, 10 Sep 2010 15:41:04 +0000 (-0700) Subject: Merge branch 'cow_readahead' of git://oss.oracle.com/git/tma/linux-2.6 into merge-2 X-Git-Tag: firefly_0821_release~7613^2~3705^2~14 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=729963a1ff8d069d05dab6a024bfd59805ac622c;p=firefly-linux-kernel-4.4.55.git Merge branch 'cow_readahead' of git://oss.oracle.com/git/tma/linux-2.6 into merge-2 --- 729963a1ff8d069d05dab6a024bfd59805ac622c diff --cc fs/ocfs2/mmap.c index 4c18f4ad93b4,b04d6961c0d4..7e32db9c2c99 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c @@@ -109,9 -108,9 +110,9 @@@ static int __ocfs2_page_mkwrite(struct * because the "write" would invalidate their data. */ if (page->index == last_index) - len = size & ~PAGE_CACHE_MASK; + len = ((size - 1) & ~PAGE_CACHE_MASK) + 1; - ret = ocfs2_write_begin_nolock(mapping, pos, len, 0, &locked_page, + ret = ocfs2_write_begin_nolock(file, mapping, pos, len, 0, &locked_page, &fsdata, di_bh, page); if (ret) { if (ret != -ENOSPC)