]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ext2/ialloc.c
CRED: Wrap task credential accesses in the Ext2 filesystem
[linux-2.6-omap-h63xx.git] / fs / ext2 / ialloc.c
index f597413467605ab8f6c7a1cef2cc0e1d269c7b9d..8d0add62587020ab8299e33dd8a6b5ac4edae500 100644 (file)
@@ -550,7 +550,7 @@ got:
 
        sb->s_dirt = 1;
        mark_buffer_dirty(bh2);
-       inode->i_uid = current->fsuid;
+       inode->i_uid = current_fsuid();
        if (test_opt (sb, GRPID))
                inode->i_gid = dir->i_gid;
        else if (dir->i_mode & S_ISGID) {
@@ -558,7 +558,7 @@ got:
                if (S_ISDIR(mode))
                        mode |= S_ISGID;
        } else
-               inode->i_gid = current->fsgid;
+               inode->i_gid = current_fsgid();
        inode->i_mode = mode;
 
        inode->i_ino = ino;