diff options
-rw-r--r-- | fs/ceph/caps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 620daad201db..3251e9cc6401 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -1005,7 +1005,7 @@ static void __queue_cap_release(struct ceph_mds_session *session, | |||
1005 | 1005 | ||
1006 | BUG_ON(msg->front.iov_len + sizeof(*item) > PAGE_CACHE_SIZE); | 1006 | BUG_ON(msg->front.iov_len + sizeof(*item) > PAGE_CACHE_SIZE); |
1007 | head = msg->front.iov_base; | 1007 | head = msg->front.iov_base; |
1008 | head->num = cpu_to_le32(le32_to_cpu(head->num) + 1); | 1008 | le32_add_cpu(&head->num, 1); |
1009 | item = msg->front.iov_base + msg->front.iov_len; | 1009 | item = msg->front.iov_base + msg->front.iov_len; |
1010 | item->ino = cpu_to_le64(ino); | 1010 | item->ino = cpu_to_le64(ino); |
1011 | item->cap_id = cpu_to_le64(cap_id); | 1011 | item->cap_id = cpu_to_le64(cap_id); |