]> git.neil.brown.name Git - history.git/commitdiff
[XFS] remove nopkg() alias for ENOSYS
authorChristoph Hellwig <hch@sgi.com>
Wed, 6 Nov 2002 21:08:16 +0000 (22:08 +0100)
committerNathan Scott <nathans@sgi.com>
Wed, 6 Nov 2002 21:08:16 +0000 (22:08 +0100)
SGI Modid: 2.5.x-xfs:slinx:130598a

fs/xfs/linux/xfs_linux.h
fs/xfs/xfs_dmapi.h
fs/xfs/xfs_log_recover.c

index 6ce17277ed889be6aabd0cbbe26cba79dbc25657..d068e9a7f7a7c8b4bf851a4e47eb718286bb74c6 100644 (file)
@@ -155,8 +155,6 @@ typedef struct xfs_dirent {         /* data from readdir() */
 #define SYNCHRONIZE()  barrier()
 #define rootdev                ROOT_DEV
 #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) */
 /* we may well need to fine-tune this if it ever becomes an issue.  */
index dbfff6f70ad97e9bb2f905a59703bfbc6756acf8..edf08597d8e4de26f5707de1149f4121d8af92e2 100644 (file)
@@ -268,7 +268,7 @@ xfs_dm_send_data_event(
        int             flags,
        vrwlock_t       *locktype)
 {
-       return nopkg();
+       return ENOSYS;
 }
 
 static __inline int
@@ -288,7 +288,7 @@ dm_send_destroy_event(
        bhv_desc_t      *bdp,
        dm_right_t      vp_right)
 {
-       return nopkg();
+       return ENOSYS;
 }
 
 static __inline int
@@ -304,7 +304,7 @@ dm_send_namesp_event(
        int             retcode,
        int             flags)
 {
-       return nopkg();
+       return ENOSYS;
 }
 
 static __inline void
index 125af631e3f216fcae60b36250e318fd23e704c5..b01d968eaf01854517112bc17a32c05c7680aed2 100644 (file)
@@ -1802,7 +1802,7 @@ xlog_recover_do_reg_buffer(xfs_mount_t            *mp,
                 */
                error = 0;
                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 *)
                                               item->ri_buf[i].i_addr,
                                               -1, 0, XFS_QMOPT_DOWARN,
@@ -2315,7 +2315,7 @@ xlog_recover_do_dquot_trans(xlog_t                *log,
         * of looking at the SB quota bits.
         *
         * 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;
        ASSERT(dq_f);
@@ -2323,7 +2323,7 @@ xlog_recover_do_dquot_trans(xlog_t                *log,
                           dq_f->qlf_id,
                           0, XFS_QMOPT_DOWARN,
                           "xlog_recover_do_dquot_trans (log copy)"))) {
-         if ((error == nopkg()))
+         if (error == ENOSYS)
                        return (0);
                return XFS_ERROR(EIO);
        }