OSDN Git Service

xfs: remove unused XBT_FORCE_SLEEP bit
authorEric Sandeen <sandeen@sandeen.net>
Tue, 13 Dec 2011 23:12:45 +0000 (23:12 +0000)
committerBen Myers <bpm@sgi.com>
Fri, 16 Dec 2011 21:12:33 +0000 (15:12 -0600)
XBT_FORCE_SLEEP is no longer ever tested; it is only set
and cleared.  Remove it.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h

index cf0ac05..2277bca 100644 (file)
@@ -1701,12 +1701,8 @@ xfsbufd(
                struct list_head tmp;
                struct blk_plug plug;
 
-               if (unlikely(freezing(current))) {
-                       set_bit(XBT_FORCE_SLEEP, &target->bt_flags);
+               if (unlikely(freezing(current)))
                        refrigerator();
-               } else {
-                       clear_bit(XBT_FORCE_SLEEP, &target->bt_flags);
-               }
 
                /* sleep for a long time if there is nothing to do. */
                if (list_empty(&target->bt_delwri_queue))
index 5bab046..df7ffb0 100644 (file)
@@ -90,8 +90,7 @@ typedef unsigned int xfs_buf_flags_t;
        { _XBF_DELWRI_Q,        "DELWRI_Q" }
 
 typedef enum {
-       XBT_FORCE_SLEEP = 0,
-       XBT_FORCE_FLUSH = 1,
+       XBT_FORCE_FLUSH = 0,
 } xfs_buftarg_flags_t;
 
 typedef struct xfs_buftarg {