[PATCH] coredump: fix dumping through pipes

2016-06-05 Thread Mateusz Guzik
The offset in the core file used to be tracked with ->written field of the coredump_params structure. The field was retired in favour of file->f_pos. However, ->f_pos is not maintained for pipes which leads to breakage. Restore explicit tracking of the offset in coredump_params. Introduce ->pos

[PATCH] coredump: fix dumping through pipes

2016-06-05 Thread Mateusz Guzik
The offset in the core file used to be tracked with ->written field of the coredump_params structure. The field was retired in favour of file->f_pos. However, ->f_pos is not maintained for pipes which leads to breakage. Restore explicit tracking of the offset in coredump_params. Introduce ->pos

[PATCH] coredump: fix dumping through pipes

2016-06-05 Thread Mateusz Guzik
The offset in the core file used to be tracked with ->written field of the coredump_params structure. Commit a0083939510 ("get rid of coredump_params->written") replaced all its uses with file->f_pos. However, ->f_pos is not maintained for pipes which leads to breakage. Restore explicit tracking

[PATCH] coredump: fix dumping through pipes

2016-06-05 Thread Mateusz Guzik
The offset in the core file used to be tracked with ->written field of the coredump_params structure. Commit a0083939510 ("get rid of coredump_params->written") replaced all its uses with file->f_pos. However, ->f_pos is not maintained for pipes which leads to breakage. Restore explicit tracking