OSDN Git Service

staging: lustre: llite: rw.c: remove gfp_mask
authorGuillaume Morin <guillaume@morinfr.org>
Tue, 22 Jul 2014 02:22:26 +0000 (04:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 22:00:33 +0000 (15:00 -0700)
sparse reported that gfp_mask was of the wrong type to store gfp flags.  The
variable is not used so it can be removed.

Signed-off-by: Guillaume Morin <guillaume@morinfr.org>
Suggested-by: gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/rw.c

index cd8402e..ecd7a22 100644 (file)
@@ -496,14 +496,9 @@ static int ll_read_ahead_page(const struct lu_env *env, struct cl_io *io,
        struct cl_object *clob  = ll_i2info(mapping->host)->lli_clob;
        struct cl_page   *page;
        enum ra_stat      which = _NR_RA_STAT; /* keep gcc happy */
-       unsigned int      gfp_mask;
        int            rc    = 0;
        const char       *msg   = NULL;
 
-       gfp_mask = GFP_HIGHUSER & ~__GFP_WAIT;
-#ifdef __GFP_NOWARN
-       gfp_mask |= __GFP_NOWARN;
-#endif
        vmpage = grab_cache_page_nowait(mapping, index);
        if (vmpage != NULL) {
                /* Check if vmpage was truncated or reclaimed */