rcu: Check both root and current rcu_node when setting up future grace period
[firefly-linux-kernel-4.4.55.git] / fs / xfs / xfs_ialloc.c
index 1313df7ff0d83a45583cfbb6f27c7c555bc0109e..5960e5593fe045b7f559a68638205845250ca74c 100644 (file)
@@ -280,10 +280,8 @@ xfs_ialloc_inode_init(
                if (tp)
                        xfs_icreate_log(tp, agno, agbno, mp->m_ialloc_inos,
                                        mp->m_sb.sb_inodesize, length, gen);
-       } else if (xfs_sb_version_hasnlink(&mp->m_sb))
+       } else
                version = 2;
-       else
-               version = 1;
 
        for (j = 0; j < nbufs; j++) {
                /*
@@ -2131,7 +2129,6 @@ xfs_read_agi(
        if (error)
                return error;
 
-       ASSERT(!xfs_buf_geterror(*bpp));
        xfs_buf_set_ref(*bpp, XFS_AGI_REF);
        return 0;
 }