Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210045
b: refs/heads/master
c: 082afec
h: refs/heads/master
i:
  210043: e7454de
v: v3
  • Loading branch information
Sage Weil committed Aug 22, 2010
1 parent 7972620 commit dc7ad8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: f3c60c5918f26ea16761ddc8b12d8401a3db626b
refs/heads/master: 082afec92d1052305af1195f591602f4d0f44277
10 changes: 5 additions & 5 deletions trunk/fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
gid_t gid;
struct ceph_mds_session *session;
u64 xattr_version = 0;
struct ceph_buffer *xattr_blob = NULL;
int delayed = 0;
u64 flush_tid = 0;
int i;
Expand Down Expand Up @@ -1160,19 +1161,18 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
gid = inode->i_gid;
mode = inode->i_mode;

if (dropping & CEPH_CAP_XATTR_EXCL) {
if (flushing & CEPH_CAP_XATTR_EXCL) {
__ceph_build_xattrs_blob(ci);
xattr_version = ci->i_xattrs.version + 1;
xattr_blob = ci->i_xattrs.blob;
xattr_version = ci->i_xattrs.version;
}

spin_unlock(&inode->i_lock);

ret = send_cap_msg(session, ceph_vino(inode).ino, cap_id,
op, keep, want, flushing, seq, flush_tid, issue_seq, mseq,
size, max_size, &mtime, &atime, time_warp_seq,
uid, gid, mode,
xattr_version,
(flushing & CEPH_CAP_XATTR_EXCL) ? ci->i_xattrs.blob : NULL,
uid, gid, mode, xattr_version, xattr_blob,
follows);
if (ret < 0) {
dout("error sending cap msg, must requeue %p\n", inode);
Expand Down

0 comments on commit dc7ad8e

Please sign in to comment.