]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Remove unneeded "extern inline" function declarations
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 Feb 2022 18:48:57 +0000 (03:48 +0900)
committerGitHub <noreply@github.com>
Tue, 8 Feb 2022 18:48:57 +0000 (10:48 -0800)
All of these externs are already #included as static inline
functions via corresponding headers.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #13073

module/zfs/dbuf.c
module/zfs/dsl_dataset.c
module/zfs/dsl_dir.c
module/zfs/zap.c
module/zfs/zap_leaf.c
module/zfs/zap_micro.c

index 076b2d09c24bd19703e1ab61a735873900fdfdab..26f0d72b2fecbcd5f0799a8907fa6c874df9a927 100644 (file)
@@ -171,11 +171,6 @@ static void dbuf_write(dbuf_dirty_record_t *dr, arc_buf_t *data, dmu_tx_t *tx);
 static void dbuf_sync_leaf_verify_bonus_dnode(dbuf_dirty_record_t *dr);
 static int dbuf_read_verify_dnode_crypt(dmu_buf_impl_t *db, uint32_t flags);
 
-extern inline void dmu_buf_init_user(dmu_buf_user_t *dbu,
-    dmu_buf_evict_func_t *evict_func_sync,
-    dmu_buf_evict_func_t *evict_func_async,
-    dmu_buf_t **clear_on_evict_dbufp);
-
 /*
  * Global data structures and functions for the dbuf cache.
  */
index 36631ea80ab74da41c7fb3973ccb03a09023c88b..459faafeee0f1d80af2be07d5f56cb131b69c4d3 100644 (file)
@@ -90,8 +90,6 @@ static int zfs_allow_redacted_dataset_mount = 0;
 
 #define        DS_REF_MAX      (1ULL << 62)
 
-extern inline dsl_dataset_phys_t *dsl_dataset_phys(dsl_dataset_t *ds);
-
 static void dsl_dataset_set_remap_deadlist_object(dsl_dataset_t *ds,
     uint64_t obj, dmu_tx_t *tx);
 static void dsl_dataset_unset_remap_deadlist_object(dsl_dataset_t *ds,
index e4ff7d8e754f8ea8f6a8c868fa87294551f42120..43ef1897811c0c9580acbaf186b5ac1ccb98dbd7 100644 (file)
  * dsl_dir_init_fs_ss_count().
  */
 
-extern inline dsl_dir_phys_t *dsl_dir_phys(dsl_dir_t *dd);
-
 static uint64_t dsl_dir_space_towrite(dsl_dir_t *dd);
 
 typedef struct ddulrt_arg {
index 075522517d9f6741922ca639a96cb2308fa6dc47..d1d07f9fc80497713176c454cd05f6b424088a6b 100644 (file)
@@ -80,8 +80,6 @@ static int zap_iterate_prefetch = B_TRUE;
 
 int fzap_default_block_shift = 14; /* 16k blocksize */
 
-extern inline zap_phys_t *zap_f_phys(zap_t *zap);
-
 static uint64_t zap_allocate_blocks(zap_t *zap, int nblocks);
 
 void
index aa6c298c3b4b430872a2c68f0ff1143d00faf69e..aad923d512df00fad19ca4cf1724682e5339e753 100644 (file)
@@ -52,8 +52,6 @@ static uint16_t *zap_leaf_rehash_entry(zap_leaf_t *l, uint16_t entry);
 
 #define        LEAF_HASH_ENTPTR(l, h)  (&zap_leaf_phys(l)->l_hash[LEAF_HASH(l, h)])
 
-extern inline zap_leaf_phys_t *zap_leaf_phys(zap_leaf_t *l);
-
 static void
 zap_memset(void *a, int c, size_t n)
 {
index b4611685b204c00a9c46905b5611d9f0d50c9fa8..1f32e4450522cb5f7154ef441f58304a15948ce7 100644 (file)
@@ -41,8 +41,6 @@
 #include <sys/sunddi.h>
 #endif
 
-extern inline mzap_phys_t *zap_m_phys(zap_t *zap);
-
 static int mzap_upgrade(zap_t **zapp,
     void *tag, dmu_tx_t *tx, zap_flags_t flags);