CRED: Wrap task credential accesses in the JFS filesystem
[safe/jmp/linux-2.6] / fs / jfs / jfs_inode.c
index ed6574b..70022fd 100644 (file)
@@ -93,13 +93,13 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
                return ERR_PTR(rc);
        }
 
-       inode->i_uid = current->fsuid;
+       inode->i_uid = current_fsuid();
        if (parent->i_mode & S_ISGID) {
                inode->i_gid = parent->i_gid;
                if (S_ISDIR(mode))
                        mode |= S_ISGID;
        } else
-               inode->i_gid = current->fsgid;
+               inode->i_gid = current_fsgid();
 
        /*
         * New inodes need to save sane values on disk when