summaryrefslogtreecommitdiff
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2020-12-09 05:52:20 +0300
committerIlya Dryomov <idryomov@gmail.com>2020-12-15 01:21:48 +0300
commit968cd14edc3acff251f98bdc1eb15f13f05dd5fb (patch)
tree20e1f57e72db93c6f4876e898cdd3da20902dcf3 /include/linux/ceph
parent4a756db2a149f25483a7c63f013ff96372a0b2cb (diff)
downloadlinux-968cd14edc3acff251f98bdc1eb15f13f05dd5fb.tar.xz
ceph: set osdmap epoch for setxattr
When setting the file/dir layout, it may need data pool info. So in mds server, it needs to check the osdmap. At present, if mds doesn't find the data pool specified, it will try to get the latest osdmap. Now if pass the osd epoch for setxattr, the mds server can only check this epoch of osdmap. URL: https://tracker.ceph.com/issues/48504 Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/ceph_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ceph/ceph_fs.h b/include/linux/ceph/ceph_fs.h
index 455e9b9e2adf..c0f1b921ec69 100644
--- a/include/linux/ceph/ceph_fs.h
+++ b/include/linux/ceph/ceph_fs.h
@@ -424,6 +424,7 @@ union ceph_mds_request_args {
} __attribute__ ((packed)) open;
struct {
__le32 flags;
+ __le32 osdmap_epoch; /* used for setting file/dir layouts */
} __attribute__ ((packed)) setxattr;
struct {
struct ceph_file_layout_legacy layout;