diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2011-12-13 18:12:45 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2011-12-16 16:12:33 -0500 |
commit | 687d1c5e8e26f68b0defb1b9ccd85a0955325b9d (patch) | |
tree | 711090c76c2ac7e935e6e994860bdaf863faa3e5 /fs | |
parent | 7ae4440723a413c7a52edd27f654c34680dd4ea2 (diff) |
xfs: remove unused XBT_FORCE_SLEEP bit
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_buf.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_buf.h | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index cf0ac056815f..2277bcae395f 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -1701,12 +1701,8 @@ xfsbufd( | |||
1701 | struct list_head tmp; | 1701 | struct list_head tmp; |
1702 | struct blk_plug plug; | 1702 | struct blk_plug plug; |
1703 | 1703 | ||
1704 | if (unlikely(freezing(current))) { | 1704 | if (unlikely(freezing(current))) |
1705 | set_bit(XBT_FORCE_SLEEP, &target->bt_flags); | ||
1706 | refrigerator(); | 1705 | refrigerator(); |
1707 | } else { | ||
1708 | clear_bit(XBT_FORCE_SLEEP, &target->bt_flags); | ||
1709 | } | ||
1710 | 1706 | ||
1711 | /* sleep for a long time if there is nothing to do. */ | 1707 | /* sleep for a long time if there is nothing to do. */ |
1712 | if (list_empty(&target->bt_delwri_queue)) | 1708 | if (list_empty(&target->bt_delwri_queue)) |
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h index 5bab046e859f..df7ffb0affe7 100644 --- a/fs/xfs/xfs_buf.h +++ b/fs/xfs/xfs_buf.h | |||
@@ -90,8 +90,7 @@ typedef unsigned int xfs_buf_flags_t; | |||
90 | { _XBF_DELWRI_Q, "DELWRI_Q" } | 90 | { _XBF_DELWRI_Q, "DELWRI_Q" } |
91 | 91 | ||
92 | typedef enum { | 92 | typedef enum { |
93 | XBT_FORCE_SLEEP = 0, | 93 | XBT_FORCE_FLUSH = 0, |
94 | XBT_FORCE_FLUSH = 1, | ||
95 | } xfs_buftarg_flags_t; | 94 | } xfs_buftarg_flags_t; |
96 | 95 | ||
97 | typedef struct xfs_buftarg { | 96 | typedef struct xfs_buftarg { |