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>
This commit is contained in:
@@ -119,9 +119,9 @@ xfs_dir2_sf_getdents(
|
||||
* mp->m_dirdatablk.
|
||||
*/
|
||||
dot_offset = xfs_dir2_db_off_to_dataptr(mp, mp->m_dirdatablk,
|
||||
dp->d_ops->data_dot_offset());
|
||||
dp->d_ops->data_dot_offset);
|
||||
dotdot_offset = xfs_dir2_db_off_to_dataptr(mp, mp->m_dirdatablk,
|
||||
dp->d_ops->data_dotdot_offset());
|
||||
dp->d_ops->data_dotdot_offset);
|
||||
|
||||
/*
|
||||
* Put . entry unless we're starting past it.
|
||||
@@ -584,7 +584,7 @@ xfs_dir2_leaf_getdents(
|
||||
* Skip past the header.
|
||||
*/
|
||||
if (byteoff == 0)
|
||||
curoff += dp->d_ops->data_entry_offset();
|
||||
curoff += dp->d_ops->data_entry_offset;
|
||||
/*
|
||||
* Skip past entries until we reach our offset.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user