summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-11-15 16:04:37 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-12-12 23:54:27 +0100
commit5f743e4566063c3944c8a2e525ed2fe9d25fc271 (patch)
tree0833d38faed46bfc734ec419aecc0d13a5666866 /fs/ceph/super.h
parente9e427f0a14f7e4773896dd7af357819a56d097a (diff)
downloadlinux-stable-5f743e4566063c3944c8a2e525ed2fe9d25fc271.tar.gz
linux-stable-5f743e4566063c3944c8a2e525ed2fe9d25fc271.tar.bz2
linux-stable-5f743e4566063c3944c8a2e525ed2fe9d25fc271.zip
ceph: record truncate size/seq for snap data writeback
Dirty snapshot data needs to be flushed unconditionally. If they were created before truncation, writeback should use old truncate size/seq. Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index b07f55e55f60..1b31ec6d61b8 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -181,6 +181,8 @@ struct ceph_cap_snap {
u64 size;
struct timespec mtime, atime, ctime;
u64 time_warp_seq;
+ u64 truncate_size;
+ u32 truncate_seq;
int writing; /* a sync write is still in progress */
int dirty_pages; /* dirty pages awaiting writeback */
bool inline_data;