summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jeff.layton@primarydata.com>2015-03-14 16:45:35 +0300
committerJeff Layton <jeff.layton@primarydata.com>2015-03-14 16:45:35 +0300
commita9b1b455c519ee2fd6a4f9c069511e67b5be1ac4 (patch)
treefca77973993a7b94d9e6bd5c38099822a1d3d2cf /fs
parent5fb0f7fa7f6e70ac6d8fca07733e55f6dae2969d (diff)
downloadlinux-a9b1b455c519ee2fd6a4f9c069511e67b5be1ac4.tar.xz
locks: fix generic_delete_lease tracepoint to use victim pointer
It's possible that "fl" won't point at a valid lock at this point, so use "victim" instead which is either a valid lock or NULL. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index f1bad681fc1c..528fedfda15e 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1728,7 +1728,7 @@ static int generic_delete_lease(struct file *filp, void *owner)
break;
}
}
- trace_generic_delete_lease(inode, fl);
+ trace_generic_delete_lease(inode, victim);
if (victim)
error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose);
spin_unlock(&ctx->flc_lock);