From: Tao Ma Date: Mon, 10 May 2010 10:09:47 +0000 (+0800) Subject: ocfs2: Reset xattr value size after xa_cleanup_value_truncate(). X-Git-Tag: v2.6.35-rc1~469^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5a7df0649fa6a1e7800785d760e2c7d7a3204de;p=pandora-kernel.git ocfs2: Reset xattr value size after xa_cleanup_value_truncate(). In ocfs2_prepare_xattr_entry, if we fail to grow an existing value, xa_cleanup_value_truncate() will leave the old entry in place. Thus, we reset its value size. However, if we were allocating a new value, we must not reset the value size or we will BUG(). This resolves oss.oracle.com bug 1247. Signed-off-by: Tao Ma Signed-off-by: Joel Becker --- Reading git-diff-tree failed