Lines Matching refs:ctx
375 struct file_lock_context *ctx;
380 ctx = locks_inode_context(inode);
381 if (ctx) {
382 spin_lock(&ctx->flc_lock);
383 list_for_each_entry(lock, &ctx->flc_posix, fl_list)
385 list_for_each_entry(lock, &ctx->flc_flock, fl_list)
387 spin_unlock(&ctx->flc_lock);
434 struct file_lock_context *ctx = locks_inode_context(inode);
443 if (!ctx)
446 spin_lock(&ctx->flc_lock);
447 list_for_each_entry(lock, &ctx->flc_posix, fl_list) {
458 list_for_each_entry(lock, &ctx->flc_flock, fl_list) {
470 spin_unlock(&ctx->flc_lock);