fs: remove leftover comments from mandatory locking removal
authorJeff Layton <jlayton@kernel.org>
Tue, 26 Oct 2021 15:56:45 +0000 (11:56 -0400)
committerJeff Layton <jlayton@kernel.org>
Tue, 26 Oct 2021 16:20:50 +0000 (12:20 -0400)
Stragglers from commit f7e33bdbd6d1 ("fs: remove mandatory file locking
support").

Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/namei.c
fs/read_write.c

index 95a881e0552b1d6ca6333a47ae7c006a9455b29b..b05e6840df74d7b943529ccacd2728b050a712a0 100644 (file)
@@ -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,
index af057c57bdc6447177bfc03e276ba2cd63bd9401..0074afa7ecb3ef90ad83d2b9089833b2a17a2ee3 100644 (file)
@@ -368,10 +368,6 @@ int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t
        if (unlikely((ssize_t) count < 0))
                return -EINVAL;
 
-       /*
-        * ranged mandatory locking does not apply to streams - it makes sense
-        * only for files where position has a meaning.
-        */
        if (ppos) {
                loff_t pos = *ppos;