diff options
author | Jeff Layton <jlayton@kernel.org> | 2021-10-26 11:56:45 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2021-10-26 12:20:50 -0400 |
commit | 482e00075d660a16de822686a4be4f7c0e11e5e2 (patch) | |
tree | d783f701e08995693dff2b73d3b15a3af7f69a97 /fs/namei.c | |
parent | e9728cc72d915966dcc288d2e217af48e8fa2362 (diff) |
fs: remove leftover comments from mandatory locking removal
Stragglers from commit f7e33bdbd6d1 ("fs: remove mandatory file locking
support").
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 4 |
1 files changed, 1 insertions, 3 deletions
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, |