autofs: use __kernel_write() for the autofs pipe writing
[sfrench/cifs-2.6.git] / fs / autofs / waitq.c
index 74c886f7c51cbe25334d38a9c57fcb2695f05bd4..5ced859dac5396b47b4bf78fc1599e501cc8a135 100644 (file)
@@ -53,7 +53,7 @@ static int autofs_write(struct autofs_sb_info *sbi,
 
        mutex_lock(&sbi->pipe_mutex);
        while (bytes) {
-               wr = kernel_write(file, data, bytes, &file->f_pos);
+               wr = __kernel_write(file, data, bytes, NULL);
                if (wr <= 0)
                        break;
                data += wr;