X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=fs%2Fnamei.c;h=dc51bac037c9a0f3338729a26663e48e9fdb8ce7;hb=d7a06983a01a33605191c0766857b832ac32a2b6;hp=d580df2e6804d0863d555234388a34397387c3e6;hpb=90478939dce096ed5b239cad16237dca0a59d66f;p=deliverable%2Flinux.git diff --git a/fs/namei.c b/fs/namei.c index d580df2e6804..dc51bac037c9 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2542,7 +2542,7 @@ static int handle_truncate(struct file *filp) /* * Refuse to truncate files with mandatory locks held on them. */ - error = locks_verify_locked(inode); + error = locks_verify_locked(filp); if (!error) error = security_path_truncate(path); if (!error) {