Take hash recalculation into do_lookup()
[linux-2.6-block.git] / fs / read_write.c
index 3ac28987f22a38b3c2005a74e8ee3dac01621679..b7f4a1f94d48eff7711d8d2761b019385142d7f7 100644 (file)
@@ -826,8 +826,6 @@ static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos,
        if (!(out_file->f_mode & FMODE_WRITE))
                goto fput_out;
        retval = -EINVAL;
-       if (!out_file->f_op || !out_file->f_op->sendpage)
-               goto fput_out;
        in_inode = in_file->f_path.dentry->d_inode;
        out_inode = out_file->f_path.dentry->d_inode;
        retval = rw_verify_area(WRITE, out_file, &out_file->f_pos, count);