Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207718
b: refs/heads/master
c: a4c6e99
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris committed Jul 28, 2010
1 parent 81b5f74 commit b02b5a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c6532e4e3b0c8bd18dd0a5cc1894a1944997cc6
refs/heads/master: a4c6e9961fcb9da54648d98978d33c6fdcb7bb45
10 changes: 5 additions & 5 deletions trunk/fs/notify/inode_mark.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void fsnotify_destroy_inode_mark(struct fsnotify_mark *mark)

spin_lock(&inode->i_lock);

hlist_del_init(&mark->i.i_list);
hlist_del_init_rcu(&mark->i.i_list);
mark->i.inode = NULL;

/*
Expand All @@ -92,7 +92,7 @@ void fsnotify_clear_marks_by_inode(struct inode *inode)
spin_lock(&inode->i_lock);
hlist_for_each_entry_safe(mark, pos, n, &inode->i_fsnotify_marks, i.i_list) {
list_add(&mark->i.free_i_list, &free_list);
hlist_del_init(&mark->i.i_list);
hlist_del_init_rcu(&mark->i.i_list);
fsnotify_get_mark(mark);
}
spin_unlock(&inode->i_lock);
Expand Down Expand Up @@ -198,7 +198,7 @@ int fsnotify_add_inode_mark(struct fsnotify_mark *mark,

/* is mark the first mark? */
if (hlist_empty(&inode->i_fsnotify_marks)) {
hlist_add_head(&mark->i.i_list, &inode->i_fsnotify_marks);
hlist_add_head_rcu(&mark->i.i_list, &inode->i_fsnotify_marks);
goto out;
}

Expand All @@ -214,13 +214,13 @@ int fsnotify_add_inode_mark(struct fsnotify_mark *mark,
if (mark->group < lmark->group)
continue;

hlist_add_before(&mark->i.i_list, &lmark->i.i_list);
hlist_add_before_rcu(&mark->i.i_list, &lmark->i.i_list);
goto out;
}

BUG_ON(last == NULL);
/* mark should be the last entry. last is the current last entry */
hlist_add_after(last, &mark->i.i_list);
hlist_add_after_rcu(last, &mark->i.i_list);
out:
fsnotify_recalc_inode_mask_locked(inode);
spin_unlock(&inode->i_lock);
Expand Down
10 changes: 5 additions & 5 deletions trunk/fs/notify/vfsmount_mark.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void fsnotify_clear_marks_by_mount(struct vfsmount *mnt)
spin_lock(&mnt->mnt_root->d_lock);
hlist_for_each_entry_safe(mark, pos, n, &mnt->mnt_fsnotify_marks, m.m_list) {
list_add(&mark->m.free_m_list, &free_list);
hlist_del_init(&mark->m.m_list);
hlist_del_init_rcu(&mark->m.m_list);
fsnotify_get_mark(mark);
}
spin_unlock(&mnt->mnt_root->d_lock);
Expand Down Expand Up @@ -91,7 +91,7 @@ void fsnotify_destroy_vfsmount_mark(struct fsnotify_mark *mark)

spin_lock(&mnt->mnt_root->d_lock);

hlist_del_init(&mark->m.m_list);
hlist_del_init_rcu(&mark->m.m_list);
mark->m.mnt = NULL;

fsnotify_recalc_vfsmount_mask_locked(mnt);
Expand Down Expand Up @@ -156,7 +156,7 @@ int fsnotify_add_vfsmount_mark(struct fsnotify_mark *mark,

/* is mark the first mark? */
if (hlist_empty(&mnt->mnt_fsnotify_marks)) {
hlist_add_head(&mark->m.m_list, &mnt->mnt_fsnotify_marks);
hlist_add_head_rcu(&mark->m.m_list, &mnt->mnt_fsnotify_marks);
goto out;
}

Expand All @@ -172,13 +172,13 @@ int fsnotify_add_vfsmount_mark(struct fsnotify_mark *mark,
if (mark->group < lmark->group)
continue;

hlist_add_before(&mark->m.m_list, &lmark->m.m_list);
hlist_add_before_rcu(&mark->m.m_list, &lmark->m.m_list);
goto out;
}

BUG_ON(last == NULL);
/* mark should be the last entry. last is the current last entry */
hlist_add_after(last, &mark->m.m_list);
hlist_add_after_rcu(last, &mark->m.m_list);
out:
fsnotify_recalc_vfsmount_mask_locked(mnt);
spin_unlock(&mnt->mnt_root->d_lock);
Expand Down

0 comments on commit b02b5a2

Please sign in to comment.