Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156109
b: refs/heads/master
c: a51b56f
h: refs/heads/master
i:
  156107: 3160d6b
v: v3
  • Loading branch information
Benjamin Marzinski authored and Steven Whitehouse committed Jul 30, 2009
1 parent 982d0b7 commit d665531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1946f70ab5e4eb8b54a8eaaedba2293a3750ab7e
refs/heads/master: a51b56fff3f04fc5aa66b21a2a6d693ee9862d66
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,10 @@ static int gfs2_shrink_glock_memory(int nr, gfp_t gfp_mask)
list_del_init(&gl->gl_lru);
atomic_dec(&lru_count);

/* Check if glock is about to be freed */
if (atomic_read(&gl->gl_ref) == 0)
continue;

/* Test for being demotable */
if (!test_and_set_bit(GLF_LOCK, &gl->gl_flags)) {
gfs2_glock_hold(gl);
Expand Down

0 comments on commit d665531

Please sign in to comment.