]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/affs/super.c
Merge branch 'master' into next
[linux-2.6-omap-h63xx.git] / fs / affs / super.c
index 3a89094f93d0f1c772526be731648e90b3e5f002..a19d64b582aac0e2882610b3a5839d88e0bd329d 100644 (file)
@@ -135,7 +135,7 @@ enum {
        Opt_verbose, Opt_volume, Opt_ignore, Opt_err,
 };
 
-static match_table_t tokens = {
+static const match_table_t tokens = {
        {Opt_bs, "bs=%u"},
        {Opt_mode, "mode=%o"},
        {Opt_mufs, "mufs"},
@@ -163,8 +163,8 @@ parse_options(char *options, uid_t *uid, gid_t *gid, int *mode, int *reserved, s
 
        /* Fill in defaults */
 
-       *uid        = current->uid;
-       *gid        = current->gid;
+       *uid        = current_uid();
+       *gid        = current_gid();
        *reserved   = 2;
        *root       = -1;
        *blocksize  = -1;