Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89a907af authored by Tao Ma's avatar Tao Ma Committed by Mark Fasheh
Browse files

ocfs2: Use the right access_* method in ctime update of xattr.



In ctime updating of xattr, it use the wrong type of access for
inode, so use ocfs2_journal_access_di instead.

Reported-and-Tested-by: default avatarTristan Ye <tristan.ye@oracle.com>
Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
Acked-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 53ecd25e
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -2592,7 +2592,8 @@ static int __ocfs2_xattr_set_handle(struct inode *inode,


	if (!ret) {
	if (!ret) {
		/* Update inode ctime. */
		/* Update inode ctime. */
		ret = ocfs2_journal_access(ctxt->handle, inode, xis->inode_bh,
		ret = ocfs2_journal_access_di(ctxt->handle, inode,
					      xis->inode_bh,
					      OCFS2_JOURNAL_ACCESS_WRITE);
					      OCFS2_JOURNAL_ACCESS_WRITE);
		if (ret) {
		if (ret) {
			mlog_errno(ret);
			mlog_errno(ret);