From 482e00075d660a16de822686a4be4f7c0e11e5e2 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 26 Oct 2021 11:56:45 -0400 Subject: fs: remove leftover comments from mandatory locking removal Stragglers from commit f7e33bdbd6d1 ("fs: remove mandatory file locking support"). Signed-off-by: Jeff Layton --- fs/namei.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fs/namei.c') diff --git a/fs/namei.c b/fs/namei.c index 95a881e0552b..b05e6840df74 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3074,9 +3074,7 @@ static int handle_truncate(struct user_namespace *mnt_userns, struct file *filp) int error = get_write_access(inode); if (error) return error; - /* - * Refuse to truncate files with mandatory locks held on them. - */ + error = security_path_truncate(path); if (!error) { error = do_truncate(mnt_userns, path->dentry, 0, -- cgit v1.2.3