mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 06:17:35 +00:00
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: Tristan Ye <tristan.ye@oracle.com> Signed-off-by: Tao Ma <tao.ma@oracle.com> Acked-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
This commit is contained in:
parent
53ecd25e14
commit
89a907afe0
@ -2592,8 +2592,9 @@ static int __ocfs2_xattr_set_handle(struct inode *inode,
|
||||
|
||||
if (!ret) {
|
||||
/* Update inode ctime. */
|
||||
ret = ocfs2_journal_access(ctxt->handle, inode, xis->inode_bh,
|
||||
OCFS2_JOURNAL_ACCESS_WRITE);
|
||||
ret = ocfs2_journal_access_di(ctxt->handle, inode,
|
||||
xis->inode_bh,
|
||||
OCFS2_JOURNAL_ACCESS_WRITE);
|
||||
if (ret) {
|
||||
mlog_errno(ret);
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user