ocfs2/xattr: Always updating ctime during xattr set.
authorTao Ma <tao.ma@oracle.com>
Thu, 4 Dec 2008 22:20:55 +0000 (06:20 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:36 +0000 (08:40 -0800)
commit4b3f6209bf9eec46fe5ebb168718fef5c443c157
treed8e7a430678736be6facd135b58a77cb7b07b3ab
parent71d548a6af36fe98c95fbd0522147f842bd5f054
ocfs2/xattr: Always updating ctime during xattr set.

In xattr set, we should always update ctime if the operation goes
sucessfully. The old one mistakenly put it in ocfs2_xattr_set_entry
which is only called when we set xattr in inode or xattr block. The
side benefit is that it resolve the bug 1052 since in that scenario,
ocfs2_calc_xattr_set_need only calc out the xattr set credits while
ocfs2_xattr_set_entry update the inode also which isn't concerned with
the process of xattr set.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/xattr.c