diff options
Diffstat (limited to 'fs/gfs2/locking/nolock/main.c')
-rw-r--r-- | fs/gfs2/locking/nolock/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/locking/nolock/main.c b/fs/gfs2/locking/nolock/main.c index 284a5ece8d94..627bfb79bc8c 100644 --- a/fs/gfs2/locking/nolock/main.c +++ b/fs/gfs2/locking/nolock/main.c | |||
@@ -107,6 +107,8 @@ static void nolock_put_lock(void *lock) | |||
107 | static unsigned int nolock_lock(void *lock, unsigned int cur_state, | 107 | static unsigned int nolock_lock(void *lock, unsigned int cur_state, |
108 | unsigned int req_state, unsigned int flags) | 108 | unsigned int req_state, unsigned int flags) |
109 | { | 109 | { |
110 | if (req_state == LM_ST_UNLOCKED) | ||
111 | return 0; | ||
110 | return req_state | LM_OUT_CACHEABLE; | 112 | return req_state | LM_OUT_CACHEABLE; |
111 | } | 113 | } |
112 | 114 | ||