Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188738
b: refs/heads/master
c: 70edb55
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Mar 1, 2010
1 parent 861d5f2 commit f60b437
Show file tree
Hide file tree
Showing 2 changed files with 4 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: c16e786927b977cb880873214bbd815e8d5ec4ba
refs/heads/master: 70edb55bdfa8922c8ad40bc5a67abb6d9fee8d47
5 changes: 3 additions & 2 deletions trunk/fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -2608,6 +2608,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
u64 size, max_size;
u64 tid;
int check_caps = 0;
void *snaptrace;
int r;

dout("handle_caps from mds%d\n", mds);
Expand All @@ -2617,6 +2618,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,
if (msg->front.iov_len < sizeof(*h))
goto bad;
h = msg->front.iov_base;
snaptrace = h + 1;
op = le32_to_cpu(h->op);
vino.ino = le64_to_cpu(h->ino);
vino.snap = CEPH_NOSNAP;
Expand Down Expand Up @@ -2651,8 +2653,7 @@ void ceph_handle_caps(struct ceph_mds_session *session,

case CEPH_CAP_OP_IMPORT:
handle_cap_import(mdsc, inode, h, session,
msg->middle,
le32_to_cpu(h->snap_trace_len));
snaptrace, le32_to_cpu(h->snap_trace_len));
check_caps = 1; /* we may have sent a RELEASE to the old auth */
goto done;
}
Expand Down

0 comments on commit f60b437

Please sign in to comment.