Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188731
b: refs/heads/master
c: 88d892a
h: refs/heads/master
i:
  188729: 3a34407
  188727: 1fbaf0b
v: v3
  • Loading branch information
Yehuda Sadeh authored and Sage Weil committed Feb 23, 2010
1 parent 9688637 commit b7c1bb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: a1ea787c7b6ec036d169d84e08cca7b6e399ba70
refs/heads/master: 88d892a37fc231ab2aa3b1c40ca9d67224616594
9 changes: 6 additions & 3 deletions trunk/fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static ssize_t ceph_aio_write(struct kiocb *iocb, const struct iovec *iov,
struct ceph_osd_client *osdc = &ceph_client(inode->i_sb)->osdc;
loff_t endoff = pos + iov->iov_len;
int got = 0;
int ret;
int ret, err;

if (ceph_snap(inode) != CEPH_NOSNAP)
return -EROFS;
Expand Down Expand Up @@ -838,9 +838,12 @@ static ssize_t ceph_aio_write(struct kiocb *iocb, const struct iovec *iov,

if ((ret >= 0 || ret == -EIOCBQUEUED) &&
((file->f_flags & O_SYNC) || IS_SYNC(file->f_mapping->host)
|| ceph_osdmap_flag(osdc->osdmap, CEPH_OSDMAP_NEARFULL)))
ret = vfs_fsync_range(file, file->f_path.dentry,
|| ceph_osdmap_flag(osdc->osdmap, CEPH_OSDMAP_NEARFULL))) {
err = vfs_fsync_range(file, file->f_path.dentry,
pos, pos + ret - 1, 1);
if (err < 0)
ret = err;
}
}
if (ret >= 0) {
spin_lock(&inode->i_lock);
Expand Down

0 comments on commit b7c1bb0

Please sign in to comment.