Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312103
b: refs/heads/master
c: 9909d45
h: refs/heads/master
i:
  312101: fbf99c0
  312099: 0dfca2e
  312095: 7439b56
v: v3
  • Loading branch information
Boaz Harrosh committed Jul 20, 2012
1 parent 252a8a6 commit de249c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 537632e0a54a5355cdd0330911d18c3b773f9cf7
refs/heads/master: 9909d45a8557455ca5f8ee7af0f253debc851f1a
9 changes: 7 additions & 2 deletions trunk/fs/nfs/objlayout/objio_osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,10 @@ int objio_read_pagelist(struct nfs_read_data *rdata)
objios->ios->done = _read_done;
dprintk("%s: offset=0x%llx length=0x%x\n", __func__,
rdata->args.offset, rdata->args.count);
return ore_read(objios->ios);
ret = ore_read(objios->ios);
if (unlikely(ret))
objio_free_result(&objios->oir);
return ret;
}

/*
Expand Down Expand Up @@ -539,8 +542,10 @@ int objio_write_pagelist(struct nfs_write_data *wdata, int how)
dprintk("%s: offset=0x%llx length=0x%x\n", __func__,
wdata->args.offset, wdata->args.count);
ret = ore_write(objios->ios);
if (unlikely(ret))
if (unlikely(ret)) {
objio_free_result(&objios->oir);
return ret;
}

if (objios->sync)
_write_done(objios->ios, objios);
Expand Down

0 comments on commit de249c9

Please sign in to comment.