Merge tag 'thermal-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...
[linux-2.6-microblaze.git] / fs / coredump.c
index ebc43f9..9f4aae2 100644 (file)
@@ -816,9 +816,9 @@ static int __dump_skip(struct coredump_params *cprm, size_t nr)
 {
        static char zeroes[PAGE_SIZE];
        struct file *file = cprm->file;
-       if (file->f_op->llseek && file->f_op->llseek != no_llseek) {
+       if (file->f_mode & FMODE_LSEEK) {
                if (dump_interrupted() ||
-                   file->f_op->llseek(file, nr, SEEK_CUR) < 0)
+                   vfs_llseek(file, nr, SEEK_CUR) < 0)
                        return 0;
                cprm->pos += nr;
                return 1;