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/xfs_log_recover.c | |
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/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 65f1f137d789..97148f0c4bdd 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -2184,9 +2184,9 @@ xlog_recover_do_buffer_trans( | |||
2184 | } | 2184 | } |
2185 | 2185 | ||
2186 | mp = log->l_mp; | 2186 | mp = log->l_mp; |
2187 | buf_flags = XFS_BUF_LOCK; | 2187 | buf_flags = XBF_LOCK; |
2188 | if (!(flags & XFS_BLI_INODE_BUF)) | 2188 | if (!(flags & XFS_BLI_INODE_BUF)) |
2189 | buf_flags |= XFS_BUF_MAPPED; | 2189 | buf_flags |= XBF_MAPPED; |
2190 | 2190 | ||
2191 | bp = xfs_buf_read(mp->m_ddev_targp, blkno, len, buf_flags); | 2191 | bp = xfs_buf_read(mp->m_ddev_targp, blkno, len, buf_flags); |
2192 | if (XFS_BUF_ISERROR(bp)) { | 2192 | if (XFS_BUF_ISERROR(bp)) { |
@@ -2288,7 +2288,7 @@ xlog_recover_do_inode_trans( | |||
2288 | } | 2288 | } |
2289 | 2289 | ||
2290 | bp = xfs_buf_read(mp->m_ddev_targp, in_f->ilf_blkno, in_f->ilf_len, | 2290 | bp = xfs_buf_read(mp->m_ddev_targp, in_f->ilf_blkno, in_f->ilf_len, |
2291 | XFS_BUF_LOCK); | 2291 | XBF_LOCK); |
2292 | if (XFS_BUF_ISERROR(bp)) { | 2292 | if (XFS_BUF_ISERROR(bp)) { |
2293 | xfs_ioerror_alert("xlog_recover_do..(read#2)", mp, | 2293 | xfs_ioerror_alert("xlog_recover_do..(read#2)", mp, |
2294 | bp, in_f->ilf_blkno); | 2294 | bp, in_f->ilf_blkno); |
@@ -3146,7 +3146,7 @@ xlog_recover_process_one_iunlink( | |||
3146 | /* | 3146 | /* |
3147 | * Get the on disk inode to find the next inode in the bucket. | 3147 | * Get the on disk inode to find the next inode in the bucket. |
3148 | */ | 3148 | */ |
3149 | error = xfs_itobp(mp, NULL, ip, &dip, &ibp, XFS_BUF_LOCK); | 3149 | error = xfs_itobp(mp, NULL, ip, &dip, &ibp, XBF_LOCK); |
3150 | if (error) | 3150 | if (error) |
3151 | goto fail_iput; | 3151 | goto fail_iput; |
3152 | 3152 | ||