diff options
author | Yan, Zheng <zyan@redhat.com> | 2014-11-14 22:39:13 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@redhat.com> | 2014-12-17 20:09:53 +0300 |
commit | e20d258d73a8d565b729b6fc0290e060daabd8b8 (patch) | |
tree | da7986234d3e3254571b615dfe87673dfe0c6fbf /fs/ceph/super.h | |
parent | 28127bdd2f843e996f24b51a70a0592c7ec5c763 (diff) | |
download | op-kernel-dev-e20d258d73a8d565b729b6fc0290e060daabd8b8.zip op-kernel-dev-e20d258d73a8d565b729b6fc0290e060daabd8b8.tar.gz |
ceph: flush inline version
After converting inline data to normal data, client need to flush
the new i_inline_version (CEPH_INLINE_NONE) to MDS. This commit makes
cap messages (sent to MDS) contain inline_version and inline_data.
Client always converts inline data to normal data before data write,
so the inline data length part is always zero.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 8197a3c..e1aa32d 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -161,6 +161,7 @@ struct ceph_cap_snap { u64 time_warp_seq; int writing; /* a sync write is still in progress */ int dirty_pages; /* dirty pages awaiting writeback */ + bool inline_data; }; static inline void ceph_put_cap_snap(struct ceph_cap_snap *capsnap) |