All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lachlan McIlroy <lachlan@sgi.com>
To: xfs-oss <xfs@oss.sgi.com>
Subject: [PATCH] Remove XFS_BUF_SHUT() and friends
Date: Thu, 04 Dec 2008 18:27:16 +1100	[thread overview]
Message-ID: <49378654.2050707@sgi.com> (raw)

Code does nothing so remove it.

--- a/fs/xfs/linux-2.6/xfs_buf.h	2008-12-04 14:24:12.000000000 +1100
+++ b/fs/xfs/linux-2.6/xfs_buf.h	2008-12-04 14:24:22.000000000 +1100
@@ -311,10 +311,6 @@ extern void xfs_buf_trace(xfs_buf_t *, c
  #define XFS_BUF_UNORDERED(bp)	((bp)->b_flags &= ~XBF_ORDERED)
  #define XFS_BUF_ISORDERED(bp)	((bp)->b_flags & XBF_ORDERED)

-#define XFS_BUF_SHUT(bp)	do { } while (0)
-#define XFS_BUF_UNSHUT(bp)	do { } while (0)
-#define XFS_BUF_ISSHUT(bp)	(0)
-
  #define XFS_BUF_HOLD(bp)	xfs_buf_hold(bp)
  #define XFS_BUF_READ(bp)	((bp)->b_flags |= XBF_READ)
  #define XFS_BUF_UNREAD(bp)	((bp)->b_flags &= ~XBF_READ)
--- a/fs/xfs/xfs_buf_item.c	2008-12-04 14:24:12.000000000 +1100
+++ b/fs/xfs/xfs_buf_item.c	2008-12-04 14:13:32.000000000 +1100
@@ -998,21 +1000,7 @@ xfs_buf_iodone_callbacks(
  			xfs_buf_do_callbacks(bp, lip);
  			XFS_BUF_SET_FSPRIVATE(bp, NULL);
  			XFS_BUF_CLR_IODONE_FUNC(bp);
-
-			/*
-			 * XFS_SHUT flag gets set when we go thru the
-			 * entire buffer cache and deliberately start
-			 * throwing away delayed write buffers.
-			 * Since there's no biowait done on those,
-			 * we should just brelse them.
-			 */
-			if (XFS_BUF_ISSHUT(bp)) {
-			    XFS_BUF_UNSHUT(bp);
-				xfs_buf_relse(bp);
-			} else {
-				xfs_biodone(bp);
-			}
-
+			xfs_biodone(bp);
  			return;
  		}

--- a/fs/xfs/xfs_inode.c	2008-12-04 14:24:12.000000000 +1100
+++ b/fs/xfs/xfs_inode.c	2008-12-04 14:21:54.000000000 +1100
@@ -3089,7 +3089,6 @@ cluster_corrupt_out:
  			XFS_BUF_CLR_BDSTRAT_FUNC(bp);
  			XFS_BUF_UNDONE(bp);
  			XFS_BUF_STALE(bp);
-			XFS_BUF_SHUT(bp);
  			XFS_BUF_ERROR(bp,EIO);
  			xfs_biodone(bp);
  		} else {

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

             reply	other threads:[~2008-12-04  7:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04  7:27 Lachlan McIlroy [this message]
2008-12-04 13:27 ` [PATCH] Remove XFS_BUF_SHUT() and friends Christoph Hellwig
2008-12-05  3:52   ` Lachlan McIlroy
2008-12-17 14:20     ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49378654.2050707@sgi.com \
    --to=lachlan@sgi.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.