mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
sync_file_range: delete dead S_ISLNK code
Symlinks can't appear as opened file. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Link: https://patch.msgid.link/295235c7-7f68-4554-bb6f-85398beca350@p183 Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
parent
de7680d943
commit
50d377ef12
|
|
@ -266,8 +266,7 @@ int sync_file_range(struct file *file, loff_t offset, loff_t nbytes,
|
|||
|
||||
i_mode = file_inode(file)->i_mode;
|
||||
ret = -ESPIPE;
|
||||
if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) &&
|
||||
!S_ISLNK(i_mode))
|
||||
if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode))
|
||||
goto out;
|
||||
|
||||
mapping = file->f_mapping;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user