aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index c1178880f23c..88339f59efb5 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2569,7 +2569,7 @@ static int handle_truncate(struct file *filp)
2569 /* 2569 /*
2570 * Refuse to truncate files with mandatory locks held on them. 2570 * Refuse to truncate files with mandatory locks held on them.
2571 */ 2571 */
2572 error = locks_verify_locked(inode); 2572 error = locks_verify_locked(filp);
2573 if (!error) 2573 if (!error)
2574 error = security_path_truncate(path); 2574 error = security_path_truncate(path);
2575 if (!error) { 2575 if (!error) {