static void v9fs_fsync(void *opaque)
{
    int err;
    int32_t fid;
    int datasync;
    size_t offset = 7;
    V9fsFidState *fidp;
    V9fsPDU *pdu = opaque;
    V9fsState *s = pdu->s;
    pdu_unmarshal(pdu, offset, "dd", &fid, &datasync);
    fidp = get_fid(pdu, fid);
    if (fidp == NULL) {
        err = -ENOENT;
        goto out_nofid;
    }
    err = v9fs_co_fsync(pdu, fidp, datasync);
    if (!err) {
        err = offset;
    }
    put_fid(pdu, fidp);
out_nofid:
    complete_pdu(s, pdu, err);
}
static void v9fs_fsync(void *opaque)
{
    int err;
    int32_t fid;
    int datasync;
    size_t offset = 7;
    V9fsFidState *fidp;
    V9fsPDU *pdu = opaque;
    V9fsState *s = pdu->s;
    pdu_unmarshal(pdu, offset, "dd", &fid, &datasync);
    fidp = get_fid(pdu, fid);
    if (fidp == NULL) {
        err = -ENOENT;
        goto out_nofid;
    }
    err = v9fs_co_fsync(pdu, fidp, datasync);
    if (!err) {
        err = offset;
    }
    put_fid(pdu, fidp);
out_nofid:
    complete_pdu(s, pdu, err);
}
static void FUNC_0(void *VAR_0)
{
    int VAR_1;
    int32_t fid;
    int VAR_2;
    size_t offset = 7;
    V9fsFidState *fidp;
    V9fsPDU *pdu = VAR_0;
    V9fsState *s = pdu->s;
    pdu_unmarshal(pdu, offset, "dd", &fid, &VAR_2);
    fidp = get_fid(pdu, fid);
    if (fidp == NULL) {
        VAR_1 = -ENOENT;
        goto out_nofid;
    }
    VAR_1 = v9fs_co_fsync(pdu, fidp, VAR_2);
    if (!VAR_1) {
        VAR_1 = offset;
    }
    put_fid(pdu, fidp);
out_nofid:
    complete_pdu(s, pdu, VAR_1);
}
static void FUNC_0(void *VAR_0)
{ int VAR_1; int32_t fid; int VAR_2; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; pdu_unmarshal(pdu, offset, "dd", &fid, &VAR_2); fidp = get_fid(pdu, fid); if (fidp == NULL) { VAR_1 = -ENOENT; goto out_nofid; } VAR_1 = v9fs_co_fsync(pdu, fidp, VAR_2); if (!VAR_1) { VAR_1 = offset; } put_fid(pdu, fidp); out_nofid:
complete_pdu(s, pdu, VAR_1); }