mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
omfs: rename() needs to mark old_inode dirty after ctime update
we *do* mark it dirty before, but it doesn't guarantee that we don't get preempted just before assignment to ->i_ctime, with inode getting written out before we get CPU back... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Bob Copeland <[email protected]>
This commit is contained in:
parent
85e2efbb1d
commit
013e4f4a28
1 changed files with 1 additions and 0 deletions
|
|
@ -423,6 +423,7 @@ static int omfs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|||
goto out;
|
||||
|
||||
old_inode->i_ctime = CURRENT_TIME_SEC;
|
||||
mark_inode_dirty(old_inode);
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue