diff options
author | Nathan Scott <nathans@sgi.com> | 2005-11-01 19:43:18 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 19:43:18 -0500 |
commit | 380b5dc0e59340e7ed36dcc95dd1022aca75bbe2 (patch) | |
tree | 78e298c775b637e7dc0029bc5ecfc28db9256038 /fs | |
parent | 80cce77980c645b1c129d0e90159c1b1bb78f6a6 (diff) |
[XFS] Fix up an internal sort function name collision issue.
SGI-PV: 942986
SGI-Modid: xfs-linux:xfs-kern:23859a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_linux.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_acl.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_attr_leaf.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir_leaf.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h index 68c5d885ed9c..960a626dd1e3 100644 --- a/fs/xfs/linux-2.6/xfs_linux.h +++ b/fs/xfs/linux-2.6/xfs_linux.h | |||
@@ -254,11 +254,11 @@ static inline void set_buffer_unwritten_io(struct buffer_head *bh) | |||
254 | #define MAX(a,b) (max(a,b)) | 254 | #define MAX(a,b) (max(a,b)) |
255 | #define howmany(x, y) (((x)+((y)-1))/(y)) | 255 | #define howmany(x, y) (((x)+((y)-1))/(y)) |
256 | #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) | 256 | #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) |
257 | #define qsort(a,n,s,fn) sort(a,n,s,fn,NULL) | ||
258 | 257 | ||
259 | /* | 258 | /* |
260 | * Various platform dependent calls that don't fit anywhere else | 259 | * Various platform dependent calls that don't fit anywhere else |
261 | */ | 260 | */ |
261 | #define xfs_sort(a,n,s,fn) sort(a,n,s,fn,NULL) | ||
262 | #define xfs_stack_trace() dump_stack() | 262 | #define xfs_stack_trace() dump_stack() |
263 | #define xfs_itruncate_data(ip, off) \ | 263 | #define xfs_itruncate_data(ip, off) \ |
264 | (-vmtruncate(LINVFS_GET_IP(XFS_ITOV(ip)), (off))) | 264 | (-vmtruncate(LINVFS_GET_IP(XFS_ITOV(ip)), (off))) |
diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c index 92fd1d67f878..49fdc392fc8a 100644 --- a/fs/xfs/xfs_acl.c +++ b/fs/xfs/xfs_acl.c | |||
@@ -155,7 +155,7 @@ posix_acl_xattr_to_xfs( | |||
155 | } | 155 | } |
156 | 156 | ||
157 | /* | 157 | /* |
158 | * Comparison function called from qsort(). | 158 | * Comparison function called from xfs_sort(). |
159 | * Primary key is ae_tag, secondary key is ae_id. | 159 | * Primary key is ae_tag, secondary key is ae_id. |
160 | */ | 160 | */ |
161 | STATIC int | 161 | STATIC int |
@@ -189,8 +189,8 @@ posix_acl_xfs_to_xattr( | |||
189 | return -ERANGE; | 189 | return -ERANGE; |
190 | 190 | ||
191 | /* Need to sort src XFS ACL by <ae_tag,ae_id> */ | 191 | /* Need to sort src XFS ACL by <ae_tag,ae_id> */ |
192 | qsort(src->acl_entry, src->acl_cnt, sizeof(src->acl_entry[0]), | 192 | xfs_sort(src->acl_entry, src->acl_cnt, sizeof(src->acl_entry[0]), |
193 | xfs_acl_entry_compare); | 193 | xfs_acl_entry_compare); |
194 | 194 | ||
195 | dest->a_version = cpu_to_le32(POSIX_ACL_XATTR_VERSION); | 195 | dest->a_version = cpu_to_le32(POSIX_ACL_XATTR_VERSION); |
196 | dest_entry = &dest->a_entries[0]; | 196 | dest_entry = &dest->a_entries[0]; |
diff --git a/fs/xfs/xfs_attr_leaf.c b/fs/xfs/xfs_attr_leaf.c index 50598b121683..63c473f8d6db 100644 --- a/fs/xfs/xfs_attr_leaf.c +++ b/fs/xfs/xfs_attr_leaf.c | |||
@@ -670,7 +670,7 @@ xfs_attr_shortform_list(xfs_attr_list_context_t *context) | |||
670 | /* | 670 | /* |
671 | * Sort the entries on hash then entno. | 671 | * Sort the entries on hash then entno. |
672 | */ | 672 | */ |
673 | qsort(sbuf, nsbuf, sizeof(*sbuf), xfs_attr_shortform_compare); | 673 | xfs_sort(sbuf, nsbuf, sizeof(*sbuf), xfs_attr_shortform_compare); |
674 | 674 | ||
675 | /* | 675 | /* |
676 | * Re-find our place IN THE SORTED LIST. | 676 | * Re-find our place IN THE SORTED LIST. |
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index bc4c40fcd479..088d3bdfac98 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -1234,7 +1234,7 @@ xfs_dir2_sf_to_block( | |||
1234 | /* | 1234 | /* |
1235 | * Sort the leaf entries by hash value. | 1235 | * Sort the leaf entries by hash value. |
1236 | */ | 1236 | */ |
1237 | qsort(blp, INT_GET(btp->count, ARCH_CONVERT), sizeof(*blp), xfs_dir2_block_sort); | 1237 | xfs_sort(blp, INT_GET(btp->count, ARCH_CONVERT), sizeof(*blp), xfs_dir2_block_sort); |
1238 | /* | 1238 | /* |
1239 | * Log the leaf entry area and tail. | 1239 | * Log the leaf entry area and tail. |
1240 | * Already logged the header in data_init, ignore needlog. | 1240 | * Already logged the header in data_init, ignore needlog. |
diff --git a/fs/xfs/xfs_dir_leaf.c b/fs/xfs/xfs_dir_leaf.c index c2ea6171fb0e..ca9bc2d9ba08 100644 --- a/fs/xfs/xfs_dir_leaf.c +++ b/fs/xfs/xfs_dir_leaf.c | |||
@@ -508,7 +508,7 @@ xfs_dir_shortform_getdents(xfs_inode_t *dp, uio_t *uio, int *eofp, | |||
508 | /* | 508 | /* |
509 | * Sort the entries on hash then entno. | 509 | * Sort the entries on hash then entno. |
510 | */ | 510 | */ |
511 | qsort(sbuf, nsbuf, sizeof(*sbuf), xfs_dir_shortform_compare); | 511 | xfs_sort(sbuf, nsbuf, sizeof(*sbuf), xfs_dir_shortform_compare); |
512 | /* | 512 | /* |
513 | * Stuff in last entry. | 513 | * Stuff in last entry. |
514 | */ | 514 | */ |