* [PATCH] xfs: remove unused XBT_FORCE_SLEEP bit
@ 2011-12-13 23:12 Eric Sandeen
2011-12-14 0:56 ` Dave Chinner
2011-12-15 23:06 ` Ben Myers
0 siblings, 2 replies; 3+ messages in thread
From: Eric Sandeen @ 2011-12-13 23:12 UTC (permalink / raw)
To: xfs-oss
XBT_FORCE_SLEEP is no longer ever tested; it is only set
and cleared. Remove it.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---
p.s. I left bt_flags as a bitfield even with only one bit defined now... OK?
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 5e68099..f7830c3 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1762,12 +1762,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_delwrite_queue))
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index 50a7d5f..1b4aec1 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -87,8 +87,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_bufhash {
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] xfs: remove unused XBT_FORCE_SLEEP bit
2011-12-13 23:12 [PATCH] xfs: remove unused XBT_FORCE_SLEEP bit Eric Sandeen
@ 2011-12-14 0:56 ` Dave Chinner
2011-12-15 23:06 ` Ben Myers
1 sibling, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2011-12-14 0:56 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs-oss
On Tue, Dec 13, 2011 at 05:12:45PM -0600, Eric Sandeen wrote:
> XBT_FORCE_SLEEP is no longer ever tested; it is only set
> and cleared. Remove it.
>
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
> ---
>
> p.s. I left bt_flags as a bitfield even with only one bit defined now... OK?
Fine by me. The plan is to remove the xfsbufd completely (by doing
all metadata writeback from the AIL), anyway, so leaving it as a bit
field for the moment is not a problem...
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xfs: remove unused XBT_FORCE_SLEEP bit
2011-12-13 23:12 [PATCH] xfs: remove unused XBT_FORCE_SLEEP bit Eric Sandeen
2011-12-14 0:56 ` Dave Chinner
@ 2011-12-15 23:06 ` Ben Myers
1 sibling, 0 replies; 3+ messages in thread
From: Ben Myers @ 2011-12-15 23:06 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs-oss
On Tue, Dec 13, 2011 at 05:12:45PM -0600, Eric Sandeen wrote:
> XBT_FORCE_SLEEP is no longer ever tested; it is only set
> and cleared. Remove it.
>
> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Yep... looks like XBT_FORCE_SLEEP is never tested.
Reviewed-by: Ben Myers <bpm@sgi.com>
> ---
>
> p.s. I left bt_flags as a bitfield even with only one bit defined now... OK?
>
> diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
> index 5e68099..f7830c3 100644
> --- a/fs/xfs/linux-2.6/xfs_buf.c
> +++ b/fs/xfs/linux-2.6/xfs_buf.c
> @@ -1762,12 +1762,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_delwrite_queue))
> diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
> index 50a7d5f..1b4aec1 100644
> --- a/fs/xfs/linux-2.6/xfs_buf.h
> +++ b/fs/xfs/linux-2.6/xfs_buf.h
> @@ -87,8 +87,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_bufhash {
>
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-15 23:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 23:12 [PATCH] xfs: remove unused XBT_FORCE_SLEEP bit Eric Sandeen
2011-12-14 0:56 ` Dave Chinner
2011-12-15 23:06 ` Ben Myers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox