X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=fs%2Fgfs2%2Fglock.c;h=a38e38f7b6fc37ae2e2b9ca5af0e59d7c5652856;hb=bc0195aad0daa2ad5b0d76cce22b167bc3435590;hp=0fa8062f85a7ab20332301ffafd1733940352096;hpb=909aa10e6d6a9524f95dadb6b3ded1c38ec34e11;p=uclinux-h8%2Flinux.git diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 0fa8062f85a7..a38e38f7b6fc 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -1076,7 +1076,8 @@ void gfs2_glock_dq(struct gfs2_holder *gh) !test_bit(GLF_DEMOTE, &gl->gl_flags)) fast_path = 1; } - if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl)) + if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl) && + (glops->go_flags & GLOF_LRU)) gfs2_glock_add_to_lru(gl); trace_gfs2_glock_queue(gh, 0);