File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2067,8 +2067,8 @@ static void
2067
2067
_dispatch_operation_advise (dispatch_operation_t op , size_t chunk_size )
2068
2068
{
2069
2069
#ifdef __linux__
2070
- // radvisory and F_RDAVICE is not support, to reuse code
2071
- // define structure here and use readahead
2070
+ // radvisory and F_RDAVICE is not supported
2071
+ // to reuse code define structure here and use readahead
2072
2072
struct radvisory {
2073
2073
off_t ra_offset ;
2074
2074
int ra_count ;
@@ -2096,8 +2096,6 @@ _dispatch_operation_advise(dispatch_operation_t op, size_t chunk_size)
2096
2096
#ifdef __linux__
2097
2097
_dispatch_io_syscall_switch (err ,
2098
2098
readahead (op -> fd_entry -> fd , advise .ra_offset , advise .ra_count ),
2099
- case EBADF : break ; // bad file desciptor
2100
- case EINVAL : break ; // wrong file type to apply
2101
2099
default : (void )dispatch_assume_zero (err ); break ;
2102
2100
);
2103
2101
#else
You can’t perform that action at this time.
0 commit comments