mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
ocfs2: Update VFS inode's id info after reflink.
commit c21a534e2f upstream.
In reflink we update the id info on the disk but forgot to update
the corresponding information in the VFS inode. Update them
accordingly when we want to preserve the attributes.
Reported-by: Jeff Liu <jeff.liu@oracle.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
08997c60a0
commit
beeaab03ee
@@ -3995,6 +3995,9 @@ static int ocfs2_complete_reflink(struct inode *s_inode,
|
||||
di->i_attr = s_di->i_attr;
|
||||
|
||||
if (preserve) {
|
||||
t_inode->i_uid = s_inode->i_uid;
|
||||
t_inode->i_gid = s_inode->i_gid;
|
||||
t_inode->i_mode = s_inode->i_mode;
|
||||
di->i_uid = s_di->i_uid;
|
||||
di->i_gid = s_di->i_gid;
|
||||
di->i_mode = s_di->i_mode;
|
||||
|
||||
Reference in New Issue
Block a user