Loading fs/namei.c +1 −3 Original line number Diff line number Diff line Loading @@ -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, Loading fs/read_write.c +0 −4 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
fs/namei.c +1 −3 Original line number Diff line number Diff line Loading @@ -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, Loading
fs/read_write.c +0 −4 Original line number Diff line number Diff line Loading @@ -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; Loading