aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ialloc.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-05-19 17:46:40 -0400
committerDave Chinner <david@fromorbit.com>2014-05-19 17:46:40 -0400
commit263997a6842b27a49f42bd795c5dd12242917b22 (patch)
tree200787e719da8e4e91a04d1235e47538aa4b85eb /fs/xfs/xfs_ialloc.c
parent32bf1deae15b67839a2f0cb233254125be73fc78 (diff)
xfs: turn NLINK feature on by default
mkfs has turned on the XFS_SB_VERSION_NLINKBIT feature bit by default since November 2007. It's about time we simply made the kernel code turn it on by default and so always convert v1 inodes to v2 inodes when reading them in from disk or allocating them. This This removes needless version checks and modification when bumping link counts on inodes, and will take code out of a few common code paths. text data bss dec hex filename 783251 100867 616 884734 d7ffe fs/xfs/xfs.o.orig 782664 100867 616 884147 d7db3 fs/xfs/xfs.o.patched Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_ialloc.c')
-rw-r--r--fs/xfs/xfs_ialloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index 8f711db61a0c..449fa7b08b56 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -220,10 +220,8 @@ xfs_ialloc_inode_init(
220 if (tp) 220 if (tp)
221 xfs_icreate_log(tp, agno, agbno, mp->m_ialloc_inos, 221 xfs_icreate_log(tp, agno, agbno, mp->m_ialloc_inos,
222 mp->m_sb.sb_inodesize, length, gen); 222 mp->m_sb.sb_inodesize, length, gen);
223 } else if (xfs_sb_version_hasnlink(&mp->m_sb)) 223 } else
224 version = 2; 224 version = 2;
225 else
226 version = 1;
227 225
228 for (j = 0; j < nbufs; j++) { 226 for (j = 0; j < nbufs; j++) {
229 /* 227 /*