diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-10-29 18:15:02 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-10-30 14:49:18 -0400 |
commit | 1c9a5b2e3045b91a10335adcc73267c304cb5dc0 (patch) | |
tree | 6908572ee6e7b71ec806a9303fe5aa87b478f96b /fs/xfs/xfs_dir2_sf.c | |
parent | 24dd0f546c366da68f33bbf2ecef2306f8c2281d (diff) |
xfs: convert directory vector functions to constants
Many of the vectorised function calls now take no parameters and
return a constant value. There is no reason for these to be vectored
functions, so convert them to constants
Binary sizes:
text data bss dec hex filename
794490 96802 1096 892388 d9de4 fs/xfs/xfs.o.orig
792986 96802 1096 890884 d9804 fs/xfs/xfs.o.p1
792350 96802 1096 890248 d9588 fs/xfs/xfs.o.p2
789293 96802 1096 887191 d8997 fs/xfs/xfs.o.p3
789005 96802 1096 886903 d8997 fs/xfs/xfs.o.p4
789061 96802 1096 886959 d88af fs/xfs/xfs.o.p5
789733 96802 1096 887631 d8b4f fs/xfs/xfs.o.p6
791421 96802 1096 889319 d91e7 fs/xfs/xfs.o.p7
791701 96802 1096 889599 d92ff fs/xfs/xfs.o.p8
791205 96802 1096 889103 d91cf fs/xfs/xfs.o.p9
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.c')
-rw-r--r-- | fs/xfs/xfs_dir2_sf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2_sf.c b/fs/xfs/xfs_dir2_sf.c index 42bbcff15cc5..aafc6e46cb58 100644 --- a/fs/xfs/xfs_dir2_sf.c +++ b/fs/xfs/xfs_dir2_sf.c | |||
@@ -473,7 +473,7 @@ xfs_dir2_sf_addname_hard( | |||
473 | * to insert the new entry. | 473 | * to insert the new entry. |
474 | * If it's going to end up at the end then oldsfep will point there. | 474 | * If it's going to end up at the end then oldsfep will point there. |
475 | */ | 475 | */ |
476 | for (offset = dp->d_ops->data_first_offset(), | 476 | for (offset = dp->d_ops->data_first_offset, |
477 | oldsfep = xfs_dir2_sf_firstentry(oldsfp), | 477 | oldsfep = xfs_dir2_sf_firstentry(oldsfp), |
478 | add_datasize = dp->d_ops->data_entsize(args->namelen), | 478 | add_datasize = dp->d_ops->data_entsize(args->namelen), |
479 | eof = (char *)oldsfep == &buf[old_isize]; | 479 | eof = (char *)oldsfep == &buf[old_isize]; |
@@ -556,7 +556,7 @@ xfs_dir2_sf_addname_pick( | |||
556 | 556 | ||
557 | sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; | 557 | sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; |
558 | size = dp->d_ops->data_entsize(args->namelen); | 558 | size = dp->d_ops->data_entsize(args->namelen); |
559 | offset = dp->d_ops->data_first_offset(); | 559 | offset = dp->d_ops->data_first_offset; |
560 | sfep = xfs_dir2_sf_firstentry(sfp); | 560 | sfep = xfs_dir2_sf_firstentry(sfp); |
561 | holefit = 0; | 561 | holefit = 0; |
562 | /* | 562 | /* |
@@ -629,7 +629,7 @@ xfs_dir2_sf_check( | |||
629 | mp = dp->i_mount; | 629 | mp = dp->i_mount; |
630 | 630 | ||
631 | sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; | 631 | sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; |
632 | offset = dp->d_ops->data_first_offset(); | 632 | offset = dp->d_ops->data_first_offset; |
633 | ino = dp->d_ops->sf_get_parent_ino(sfp); | 633 | ino = dp->d_ops->sf_get_parent_ino(sfp); |
634 | i8count = ino > XFS_DIR2_MAX_SHORT_INUM; | 634 | i8count = ino > XFS_DIR2_MAX_SHORT_INUM; |
635 | 635 | ||