diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-11-15 16:04:37 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-12-12 23:54:27 +0100 |
commit | 5f743e4566063c3944c8a2e525ed2fe9d25fc271 (patch) | |
tree | 0833d38faed46bfc734ec419aecc0d13a5666866 /fs/ceph/super.h | |
parent | e9e427f0a14f7e4773896dd7af357819a56d097a (diff) | |
download | linux-5f743e4566063c3944c8a2e525ed2fe9d25fc271.tar.bz2 |
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.h | 2 |
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; |