diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-01-19 04:56:44 -0500 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-01-21 14:44:36 -0500 |
commit | 0cadda1c5f194f98a05d252ff4385d86d2ed0862 (patch) | |
tree | a299a7a976f1478f9024f1d3aff9a2351a8397fe /fs/xfs/quota | |
parent | a210c1aa7f6c90b729cc3a72d03e789b13cb6c47 (diff) |
xfs: remove duplicate buffer flags
Currently we define aliases for the buffer flags in various
namespaces, which only adds confusion. Remove all but the XBF_
flags to clean this up a bit.
Note that we still abuse XFS_B_ASYNC/XBF_ASYNC for some non-buffer
uses, but I'll clean that up later.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/quota')
-rw-r--r-- | fs/xfs/quota/xfs_dquot.c | 3 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_dquot_item.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c index a447493690eb..5756392ffdee 100644 --- a/fs/xfs/quota/xfs_dquot.c +++ b/fs/xfs/quota/xfs_dquot.c | |||
@@ -1527,8 +1527,7 @@ xfs_qm_dqflock_pushbuf_wait( | |||
1527 | * the flush lock when the I/O completes. | 1527 | * the flush lock when the I/O completes. |
1528 | */ | 1528 | */ |
1529 | bp = xfs_incore(dqp->q_mount->m_ddev_targp, dqp->q_blkno, | 1529 | bp = xfs_incore(dqp->q_mount->m_ddev_targp, dqp->q_blkno, |
1530 | XFS_QI_DQCHUNKLEN(dqp->q_mount), | 1530 | XFS_QI_DQCHUNKLEN(dqp->q_mount), XBF_TRYLOCK); |
1531 | XFS_INCORE_TRYLOCK); | ||
1532 | if (bp != NULL) { | 1531 | if (bp != NULL) { |
1533 | if (XFS_BUF_ISDELAYWRITE(bp)) { | 1532 | if (XFS_BUF_ISDELAYWRITE(bp)) { |
1534 | int error; | 1533 | int error; |
diff --git a/fs/xfs/quota/xfs_dquot_item.c b/fs/xfs/quota/xfs_dquot_item.c index d0d4a9a0bbd7..37929d19ef44 100644 --- a/fs/xfs/quota/xfs_dquot_item.c +++ b/fs/xfs/quota/xfs_dquot_item.c | |||
@@ -237,8 +237,7 @@ xfs_qm_dquot_logitem_pushbuf( | |||
237 | } | 237 | } |
238 | mp = dqp->q_mount; | 238 | mp = dqp->q_mount; |
239 | bp = xfs_incore(mp->m_ddev_targp, qip->qli_format.qlf_blkno, | 239 | bp = xfs_incore(mp->m_ddev_targp, qip->qli_format.qlf_blkno, |
240 | XFS_QI_DQCHUNKLEN(mp), | 240 | XFS_QI_DQCHUNKLEN(mp), XBF_TRYLOCK); |
241 | XFS_INCORE_TRYLOCK); | ||
242 | if (bp != NULL) { | 241 | if (bp != NULL) { |
243 | if (XFS_BUF_ISDELAYWRITE(bp)) { | 242 | if (XFS_BUF_ISDELAYWRITE(bp)) { |
244 | dopush = ((qip->qli_item.li_flags & XFS_LI_IN_AIL) && | 243 | dopush = ((qip->qli_item.li_flags & XFS_LI_IN_AIL) && |