]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: reverse inline-data truncate args
authorMark Fasheh <mark.fasheh@oracle.com>
Tue, 20 Nov 2007 19:56:39 +0000 (11:56 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 28 Nov 2007 00:47:03 +0000 (16:47 -0800)
commit461037b3549c623c018dea22fef8ca2f3fe714a7
tree9f99f2a593c01c1755c1a3025577145185e90e48
parent109c6004591877456b12164a93d2d7ff79ae6823
ocfs2: reverse inline-data truncate args

ocfs2_truncate() and ocfs2_remove_inode_range() had reversed their "set
i_size" arguments to ocfs2_truncate_inline(). Fix things so that truncate
sets i_size, and punching a hole ignores it.

This exposed a problem where punching a hole in an inline-data file wasn't
updating the page cache, so fix that too.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/file.c