aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-01-19 04:56:44 -0500
committerAlex Elder <aelder@sgi.com>2010-01-21 14:44:36 -0500
commit0cadda1c5f194f98a05d252ff4385d86d2ed0862 (patch)
treea299a7a976f1478f9024f1d3aff9a2351a8397fe /fs/xfs/xfs_mount.c
parenta210c1aa7f6c90b729cc3a72d03e789b13cb6c47 (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_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index d95bd1809f3c..bb0154047e85 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -665,7 +665,7 @@ xfs_readsb(xfs_mount_t *mp, int flags)
665 * access to the superblock. 665 * access to the superblock.
666 */ 666 */
667 sector_size = xfs_getsize_buftarg(mp->m_ddev_targp); 667 sector_size = xfs_getsize_buftarg(mp->m_ddev_targp);
668 extra_flags = XFS_BUF_LOCK | XFS_BUF_MANAGE | XFS_BUF_MAPPED; 668 extra_flags = XBF_LOCK | XBF_FS_MANAGED | XBF_MAPPED;
669 669
670 bp = xfs_buf_read(mp->m_ddev_targp, XFS_SB_DADDR, BTOBB(sector_size), 670 bp = xfs_buf_read(mp->m_ddev_targp, XFS_SB_DADDR, BTOBB(sector_size),
671 extra_flags); 671 extra_flags);
@@ -1969,7 +1969,7 @@ xfs_getsb(
1969 1969
1970 ASSERT(mp->m_sb_bp != NULL); 1970 ASSERT(mp->m_sb_bp != NULL);
1971 bp = mp->m_sb_bp; 1971 bp = mp->m_sb_bp;
1972 if (flags & XFS_BUF_TRYLOCK) { 1972 if (flags & XBF_TRYLOCK) {
1973 if (!XFS_BUF_CPSEMA(bp)) { 1973 if (!XFS_BUF_CPSEMA(bp)) {
1974 return NULL; 1974 return NULL;
1975 } 1975 }