diff options
author | Christoph Hellwig <hch@lst.de> | 2008-11-27 22:23:39 -0500 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-11-30 19:37:42 -0500 |
commit | 51ce16d519da0bc3c548e0facef7cb3aab1ac8cc (patch) | |
tree | ef01910a32368377514f0d61022b1d9b1de7c41d /fs/xfs/xfs_utils.c | |
parent | 81591fe2db19d0fc1ec2aaaa6a790a5ab97ac3ab (diff) |
[XFS] kill XFS_DINODE_VERSION_ defines
These names don't add any value at all over just using the numerical
values.
(First sent on October 9th)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_utils.c')
-rw-r--r-- | fs/xfs/xfs_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_utils.c b/fs/xfs/xfs_utils.c index 771144932ab4..fcc2285d03ed 100644 --- a/fs/xfs/xfs_utils.c +++ b/fs/xfs/xfs_utils.c | |||
@@ -274,9 +274,9 @@ xfs_bump_ino_vers2( | |||
274 | xfs_mount_t *mp; | 274 | xfs_mount_t *mp; |
275 | 275 | ||
276 | ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); | 276 | ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); |
277 | ASSERT(ip->i_d.di_version == XFS_DINODE_VERSION_1); | 277 | ASSERT(ip->i_d.di_version == 1); |
278 | 278 | ||
279 | ip->i_d.di_version = XFS_DINODE_VERSION_2; | 279 | ip->i_d.di_version = 2; |
280 | ip->i_d.di_onlink = 0; | 280 | ip->i_d.di_onlink = 0; |
281 | memset(&(ip->i_d.di_pad[0]), 0, sizeof(ip->i_d.di_pad)); | 281 | memset(&(ip->i_d.di_pad[0]), 0, sizeof(ip->i_d.di_pad)); |
282 | mp = tp->t_mountp; | 282 | mp = tp->t_mountp; |
@@ -308,7 +308,7 @@ xfs_bumplink( | |||
308 | ASSERT(ip->i_d.di_nlink > 0); | 308 | ASSERT(ip->i_d.di_nlink > 0); |
309 | ip->i_d.di_nlink++; | 309 | ip->i_d.di_nlink++; |
310 | inc_nlink(VFS_I(ip)); | 310 | inc_nlink(VFS_I(ip)); |
311 | if ((ip->i_d.di_version == XFS_DINODE_VERSION_1) && | 311 | if ((ip->i_d.di_version == 1) && |
312 | (ip->i_d.di_nlink > XFS_MAXLINK_1)) { | 312 | (ip->i_d.di_nlink > XFS_MAXLINK_1)) { |
313 | /* | 313 | /* |
314 | * The inode has increased its number of links beyond | 314 | * The inode has increased its number of links beyond |