diff options
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index fe34d74cfb19..c8ea50ed023a 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -785,7 +785,7 @@ got: | |||
785 | spin_unlock(sb_bgl_lock(sbi, flex_group)); | 785 | spin_unlock(sb_bgl_lock(sbi, flex_group)); |
786 | } | 786 | } |
787 | 787 | ||
788 | inode->i_uid = current->fsuid; | 788 | inode->i_uid = current_fsuid(); |
789 | if (test_opt(sb, GRPID)) | 789 | if (test_opt(sb, GRPID)) |
790 | inode->i_gid = dir->i_gid; | 790 | inode->i_gid = dir->i_gid; |
791 | else if (dir->i_mode & S_ISGID) { | 791 | else if (dir->i_mode & S_ISGID) { |
@@ -793,7 +793,7 @@ got: | |||
793 | if (S_ISDIR(mode)) | 793 | if (S_ISDIR(mode)) |
794 | mode |= S_ISGID; | 794 | mode |= S_ISGID; |
795 | } else | 795 | } else |
796 | inode->i_gid = current->fsgid; | 796 | inode->i_gid = current_fsgid(); |
797 | inode->i_mode = mode; | 797 | inode->i_mode = mode; |
798 | 798 | ||
799 | inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb); | 799 | inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb); |