summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-02-03 08:24:49 -0500
committerIlya Dryomov <idryomov@gmail.com>2016-07-27 20:55:36 -0400
commit7627151ea30bce2051e3cb27d7bb2c30083f86a5 (patch)
tree8a4c9422b30c3e50eb76923c746747f4e09d0bb5 /fs/ceph/caps.c
parent22748f9d617b8cd0a915c3a4c656c7232645b3b5 (diff)
libceph: define new ceph_file_layout structure
Define new ceph_file_layout structure and rename old ceph_file_layout to ceph_file_layout_legacy. This is preparation for adding namespace to ceph_file_layout structure. Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 6f60d0a3d0f9..f24722dce167 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -2895,8 +2895,11 @@ static void handle_cap_grant(struct ceph_mds_client *mdsc,
2895 2895
2896 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) { 2896 if (newcaps & (CEPH_CAP_ANY_FILE_RD | CEPH_CAP_ANY_FILE_WR)) {
2897 /* file layout may have changed */ 2897 /* file layout may have changed */
2898 ci->i_layout = grant->layout; 2898 s64 old_pool = ci->i_layout.pool_id;
2899 ceph_file_layout_from_legacy(&ci->i_layout, &grant->layout);
2899 ci->i_pool_ns_len = pool_ns_len; 2900 ci->i_pool_ns_len = pool_ns_len;
2901 if (ci->i_layout.pool_id != old_pool)
2902 ci->i_ceph_flags &= ~CEPH_I_POOL_PERM;
2900 2903
2901 /* size/truncate_seq? */ 2904 /* size/truncate_seq? */
2902 queue_trunc = ceph_fill_file_size(inode, issued, 2905 queue_trunc = ceph_fill_file_size(inode, issued,