lkml.org 
[lkml]   [2010]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/18] fs: Introduce per-bucket inode hash locks
> +
> +/**
> + * hlist_bl_lock - lock a hash list
> + * @h: hash list head to lock
> + */
> +static inline void hlist_bl_lock(struct hlist_bl_head *h)
> +{
> + bit_spin_lock(0, (unsigned long *)h);
> +}
> +
> +/**
> + * hlist_bl_unlock - unlock a hash list
> + * @h: hash list head to unlock
> + */
> +static inline void hlist_bl_unlock(struct hlist_bl_head *h)
> +{
> + __bit_spin_unlock(0, (unsigned long *)h);
> +}

I think the locking helpers should come with the rest of the bl_list
implementation in patch1.


\
 
 \ /
  Last update: 2010-10-13 17:09    [W:0.176 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site