locks: pass inode pointer to locks_free_lock_context
[linux-2.6-block.git] / fs / locks.c
index 0af2387bd91e38c47dcaa498e72246b085fd2051..ed9ab930d0930d8c455c54cd2c10bdd09e1710a4 100644 (file)
@@ -234,8 +234,10 @@ out:
 }
 
 void
-locks_free_lock_context(struct file_lock_context *ctx)
+locks_free_lock_context(struct inode *inode)
 {
+       struct file_lock_context *ctx = inode->i_flctx;
+
        if (ctx) {
                WARN_ON_ONCE(!list_empty(&ctx->flc_flock));
                WARN_ON_ONCE(!list_empty(&ctx->flc_posix));