| .. | .. |
|---|
| 19 | 19 | spin_unlock_irq(&pin->wait.lock); |
|---|
| 20 | 20 | } |
|---|
| 21 | 21 | |
|---|
| 22 | | -void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head *p) |
|---|
| 23 | | -{ |
|---|
| 24 | | - spin_lock(&pin_lock); |
|---|
| 25 | | - if (p) |
|---|
| 26 | | - hlist_add_head(&pin->s_list, p); |
|---|
| 27 | | - hlist_add_head(&pin->m_list, &real_mount(m)->mnt_pins); |
|---|
| 28 | | - spin_unlock(&pin_lock); |
|---|
| 29 | | -} |
|---|
| 30 | | - |
|---|
| 31 | 22 | void pin_insert(struct fs_pin *pin, struct vfsmount *m) |
|---|
| 32 | 23 | { |
|---|
| 33 | | - pin_insert_group(pin, m, &m->mnt_sb->s_pins); |
|---|
| 24 | + spin_lock(&pin_lock); |
|---|
| 25 | + hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); |
|---|
| 26 | + hlist_add_head(&pin->m_list, &real_mount(m)->mnt_pins); |
|---|
| 27 | + spin_unlock(&pin_lock); |
|---|
| 34 | 28 | } |
|---|
| 35 | 29 | |
|---|
| 36 | 30 | void pin_kill(struct fs_pin *p) |
|---|