aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r--fs/xfs/xfs_itable.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 94068d014f27..864b43d65840 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -41,11 +41,6 @@
41#include "xfs_error.h" 41#include "xfs_error.h"
42#include "xfs_btree.h" 42#include "xfs_btree.h"
43 43
44#ifndef HAVE_USERACC
45#define useracc(ubuffer, size, flags, foo) (0)
46#define unuseracc(ubuffer, size, flags)
47#endif
48
49STATIC int 44STATIC int
50xfs_bulkstat_one_iget( 45xfs_bulkstat_one_iget(
51 xfs_mount_t *mp, /* mount point for filesystem */ 46 xfs_mount_t *mp, /* mount point for filesystem */
@@ -336,15 +331,6 @@ xfs_bulkstat(
336 nimask = ~(nicluster - 1); 331 nimask = ~(nicluster - 1);
337 nbcluster = nicluster >> mp->m_sb.sb_inopblog; 332 nbcluster = nicluster >> mp->m_sb.sb_inopblog;
338 /* 333 /*
339 * Lock down the user's buffer. If a buffer was not sent, as in the case
340 * disk quota code calls here, we skip this.
341 */
342 if (ubuffer &&
343 (error = useracc(ubuffer, ubcount * statstruct_size,
344 (B_READ|B_PHYS), NULL))) {
345 return error;
346 }
347 /*
348 * Allocate a page-sized buffer for inode btree records. 334 * Allocate a page-sized buffer for inode btree records.
349 * We could try allocating something smaller, but for normal 335 * We could try allocating something smaller, but for normal
350 * calls we'll always (potentially) need the whole page. 336 * calls we'll always (potentially) need the whole page.
@@ -650,8 +636,6 @@ xfs_bulkstat(
650 * Done, we're either out of filesystem or space to put the data. 636 * Done, we're either out of filesystem or space to put the data.
651 */ 637 */
652 kmem_free(irbuf, NBPC); 638 kmem_free(irbuf, NBPC);
653 if (ubuffer)
654 unuseracc(ubuffer, ubcount * statstruct_size, (B_READ|B_PHYS));
655 *ubcountp = ubelem; 639 *ubcountp = ubelem;
656 if (agno >= mp->m_sb.sb_agcount) { 640 if (agno >= mp->m_sb.sb_agcount) {
657 /* 641 /*