ocfs2: Reset xattr value size after xa_cleanup_value_truncate().
authorTao Ma <tao.ma@oracle.com>
Mon, 10 May 2010 10:09:47 +0000 (18:09 +0800)
committerJoel Becker <joel.becker@oracle.com>
Tue, 18 May 2010 23:41:21 +0000 (16:41 -0700)
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 <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>

No differences found