Commit 1d132b53 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Nathan Scott

[XFS] remove nopkg() alias for ENOSYS

SGI Modid: 2.5.x-xfs:slinx:130598a
parent 66032dd1
...@@ -155,8 +155,6 @@ typedef struct xfs_dirent { /* data from readdir() */ ...@@ -155,8 +155,6 @@ typedef struct xfs_dirent { /* data from readdir() */
#define SYNCHRONIZE() barrier() #define SYNCHRONIZE() barrier()
#define rootdev ROOT_DEV #define rootdev ROOT_DEV
#define __return_address __builtin_return_address(0) #define __return_address __builtin_return_address(0)
#define LONGLONG_MAX 9223372036854775807LL /* max "long long int" */
#define nopkg() ( ENOSYS )
/* IRIX uses a dynamic sizing algorithm (ndquot = 200 + numprocs*2) */ /* IRIX uses a dynamic sizing algorithm (ndquot = 200 + numprocs*2) */
/* we may well need to fine-tune this if it ever becomes an issue. */ /* we may well need to fine-tune this if it ever becomes an issue. */
......
...@@ -268,7 +268,7 @@ xfs_dm_send_data_event( ...@@ -268,7 +268,7 @@ xfs_dm_send_data_event(
int flags, int flags,
vrwlock_t *locktype) vrwlock_t *locktype)
{ {
return nopkg(); return ENOSYS;
} }
static __inline int static __inline int
...@@ -288,7 +288,7 @@ dm_send_destroy_event( ...@@ -288,7 +288,7 @@ dm_send_destroy_event(
bhv_desc_t *bdp, bhv_desc_t *bdp,
dm_right_t vp_right) dm_right_t vp_right)
{ {
return nopkg(); return ENOSYS;
} }
static __inline int static __inline int
...@@ -304,7 +304,7 @@ dm_send_namesp_event( ...@@ -304,7 +304,7 @@ dm_send_namesp_event(
int retcode, int retcode,
int flags) int flags)
{ {
return nopkg(); return ENOSYS;
} }
static __inline void static __inline void
......
...@@ -1802,7 +1802,7 @@ xlog_recover_do_reg_buffer(xfs_mount_t *mp, ...@@ -1802,7 +1802,7 @@ xlog_recover_do_reg_buffer(xfs_mount_t *mp,
*/ */
error = 0; error = 0;
if (buf_f->blf_flags & (XFS_BLI_UDQUOT_BUF|XFS_BLI_GDQUOT_BUF)) { if (buf_f->blf_flags & (XFS_BLI_UDQUOT_BUF|XFS_BLI_GDQUOT_BUF)) {
/* OK, if this returns nopkg() */ /* OK, if this returns ENOSYS */
error = xfs_qm_dqcheck((xfs_disk_dquot_t *) error = xfs_qm_dqcheck((xfs_disk_dquot_t *)
item->ri_buf[i].i_addr, item->ri_buf[i].i_addr,
-1, 0, XFS_QMOPT_DOWARN, -1, 0, XFS_QMOPT_DOWARN,
...@@ -2315,7 +2315,7 @@ xlog_recover_do_dquot_trans(xlog_t *log, ...@@ -2315,7 +2315,7 @@ xlog_recover_do_dquot_trans(xlog_t *log,
* of looking at the SB quota bits. * of looking at the SB quota bits.
* *
* The other possibility, of course, is that the quota subsystem was * The other possibility, of course, is that the quota subsystem was
* removed since the last mount - nopkg(). * removed since the last mount - ENOSYS.
*/ */
dq_f = (xfs_dq_logformat_t *)item->ri_buf[0].i_addr; dq_f = (xfs_dq_logformat_t *)item->ri_buf[0].i_addr;
ASSERT(dq_f); ASSERT(dq_f);
...@@ -2323,7 +2323,7 @@ xlog_recover_do_dquot_trans(xlog_t *log, ...@@ -2323,7 +2323,7 @@ xlog_recover_do_dquot_trans(xlog_t *log,
dq_f->qlf_id, dq_f->qlf_id,
0, XFS_QMOPT_DOWARN, 0, XFS_QMOPT_DOWARN,
"xlog_recover_do_dquot_trans (log copy)"))) { "xlog_recover_do_dquot_trans (log copy)"))) {
if ((error == nopkg())) if (error == ENOSYS)
return (0); return (0);
return XFS_ERROR(EIO); return XFS_ERROR(EIO);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment