Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254591
b: refs/heads/master
c: d7f124f
h: refs/heads/master
i:
  254589: 8d7a6a8
  254587: 1da639e
  254583: 194d458
  254575: a699762
  254559: d0c8659
  254527: c6afc74
  254463: 5f432e8
v: v3
  • Loading branch information
Sage Weil committed Jun 13, 2011
1 parent 17cc6c9 commit b32d156
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9bb0ce2b0b734f3325ea5cd6b351856eeac94f78
refs/heads/master: d7f124f129a6aea99938e0d4172c741b56fefeda
6 changes: 3 additions & 3 deletions trunk/fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,6 @@ static ssize_t ceph_sync_write(struct file *file, const char __user *data,
else
pos = *offset;

io_align = pos & ~PAGE_MASK;
buf_align = (unsigned long)data & ~PAGE_MASK;

ret = filemap_write_and_wait_range(inode->i_mapping, pos, pos + left);
if (ret < 0)
return ret;
Expand All @@ -502,6 +499,8 @@ static ssize_t ceph_sync_write(struct file *file, const char __user *data,
* boundary. this isn't atomic, unfortunately. :(
*/
more:
io_align = pos & ~PAGE_MASK;
buf_align = (unsigned long)data & ~PAGE_MASK;
len = left;
if (file->f_flags & O_DIRECT) {
/* write from beginning of first page, regardless of
Expand Down Expand Up @@ -591,6 +590,7 @@ static ssize_t ceph_sync_write(struct file *file, const char __user *data,
pos += len;
written += len;
left -= len;
data += written;
if (left)
goto more;

Expand Down

0 comments on commit b32d156

Please sign in to comment.