NFS: Fix warning introduced by NFSv4.0 transport blocking patches
[firefly-linux-kernel-4.4.55.git] / fs / nfs / nfs4state.c
index 4e956669d4fb64216c022ba3f74585db8f3582b9..da608ee8d5ffc6fd1d744c80fe33e339c91bc1fb 100644 (file)
@@ -239,6 +239,8 @@ static void nfs4_end_drain_session(struct nfs_client *clp)
        }
 }
 
+#if defined(CONFIG_NFS_V4_1)
+
 static int nfs4_drain_slot_tbl(struct nfs4_slot_table *tbl)
 {
        set_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state);
@@ -268,8 +270,6 @@ static int nfs4_begin_drain_session(struct nfs_client *clp)
        return nfs4_drain_slot_tbl(&ses->fc_slot_table);
 }
 
-#if defined(CONFIG_NFS_V4_1)
-
 static int nfs41_setup_state_renewal(struct nfs_client *clp)
 {
        int status;