Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276640
b: refs/heads/master
c: 6a82c47
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Dec 13, 2011
1 parent db1267e commit 52472af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: f1932fc1a6d899c754676b1dd8b17de93b052d43
refs/heads/master: 6a82c47aa84ab22cb5969a44105cca5358879d21
3 changes: 2 additions & 1 deletion trunk/fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,8 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int origin)

mutex_lock(&inode->i_mutex);
__ceph_do_pending_vmtruncate(inode);
if (origin != SEEK_CUR || origin != SEEK_SET) {

if (origin == SEEK_END || origin == SEEK_DATA || origin == SEEK_HOLE) {
ret = ceph_do_getattr(inode, CEPH_STAT_CAP_SIZE);
if (ret < 0) {
offset = ret;
Expand Down

0 comments on commit 52472af

Please sign in to comment.