[XFS] remove shouting-indirection macros from xfs_sb.h
Remove macro-to-small-function indirection from xfs_sb.h, and remove some which are completely unused. SGI-PV: 976035 SGI-Modid: xfs-linux-melb:xfs-kern:30528a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:

committed by
Lachlan McIlroy

parent
7180c4c9e0
commit
6211870992
@@ -1147,7 +1147,7 @@ xfs_ialloc(
|
||||
* the inode version number now. This way we only do the conversion
|
||||
* here rather than here and in the flush/logging code.
|
||||
*/
|
||||
if (XFS_SB_VERSION_HASNLINK(&tp->t_mountp->m_sb) &&
|
||||
if (xfs_sb_version_hasnlink(&tp->t_mountp->m_sb) &&
|
||||
ip->i_d.di_version == XFS_DINODE_VERSION_1) {
|
||||
ip->i_d.di_version = XFS_DINODE_VERSION_2;
|
||||
/*
|
||||
@@ -3434,9 +3434,9 @@ xfs_iflush_int(
|
||||
* has been updated, then make the conversion permanent.
|
||||
*/
|
||||
ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1 ||
|
||||
XFS_SB_VERSION_HASNLINK(&mp->m_sb));
|
||||
xfs_sb_version_hasnlink(&mp->m_sb));
|
||||
if (ip->i_d.di_version == XFS_DINODE_VERSION_1) {
|
||||
if (!XFS_SB_VERSION_HASNLINK(&mp->m_sb)) {
|
||||
if (!xfs_sb_version_hasnlink(&mp->m_sb)) {
|
||||
/*
|
||||
* Convert it back.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user