diff options
Diffstat (limited to 'fs/ext4/migrate.c')
-rw-r--r-- | fs/ext4/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/migrate.c b/fs/ext4/migrate.c index 3cb267aee802..b52374e42102 100644 --- a/fs/ext4/migrate.c +++ b/fs/ext4/migrate.c | |||
@@ -475,7 +475,7 @@ int ext4_ext_migrate(struct inode *inode) | |||
475 | EXT4_INODES_PER_GROUP(inode->i_sb)) + 1; | 475 | EXT4_INODES_PER_GROUP(inode->i_sb)) + 1; |
476 | owner[0] = i_uid_read(inode); | 476 | owner[0] = i_uid_read(inode); |
477 | owner[1] = i_gid_read(inode); | 477 | owner[1] = i_gid_read(inode); |
478 | tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode, | 478 | tmp_inode = ext4_new_inode(handle, d_inode(inode->i_sb->s_root), |
479 | S_IFREG, NULL, goal, owner); | 479 | S_IFREG, NULL, goal, owner); |
480 | if (IS_ERR(tmp_inode)) { | 480 | if (IS_ERR(tmp_inode)) { |
481 | retval = PTR_ERR(tmp_inode); | 481 | retval = PTR_ERR(tmp_inode); |