Lines Matching refs:ctx
358 struct file_lock_context *ctx;
363 ctx = inode->i_flctx;
364 if (ctx) {
365 spin_lock(&ctx->flc_lock);
366 list_for_each_entry(lock, &ctx->flc_posix, fl_list)
368 list_for_each_entry(lock, &ctx->flc_flock, fl_list)
370 spin_unlock(&ctx->flc_lock);
417 struct file_lock_context *ctx = inode->i_flctx;
426 if (!ctx)
429 spin_lock(&ctx->flc_lock);
430 list_for_each_entry(lock, &ctx->flc_posix, fl_list) {
441 list_for_each_entry(lock, &ctx->flc_flock, fl_list) {
453 spin_unlock(&ctx->flc_lock);