File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,11 @@ void assert_db_data_addr_locked(const dmu_buf_impl_t *db);
338338 * and by no other thread. Either it must be locked, or in a state where
339339 * locking is not required.
340340 */
341- void assert_db_data_contents_locked (const dmu_buf_impl_t * db , boolean_t writer );
341+ #ifdef __linux__
342+ void assert_db_data_contents_locked (dmu_buf_impl_t * db , boolean_t wr );
343+ #else
344+ void assert_db_data_contents_locked (const dmu_buf_impl_t * db , boolean_t wr );
345+ #endif
342346
343347#define DBUF_HASH_MUTEX (h , idx ) \
344348 (&(h)->hash_mutexes[(idx) & ((h)->hash_mutex_mask)])
Original file line number Diff line number Diff line change @@ -297,7 +297,11 @@ assert_db_data_addr_locked(const dmu_buf_impl_t *db)
297297}
298298
299299void
300+ #ifdef __linux__
301+ assert_db_data_contents_locked (dmu_buf_impl_t * db , boolean_t writer )
302+ #else
300303assert_db_data_contents_locked (const dmu_buf_impl_t * db , boolean_t writer )
304+ #endif
301305{
302306 /*
303307 * db_rwlock protects indirect blocks and the data block of the meta
You can’t perform that action at this time.
0 commit comments