]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: store layout on header object
authorJohn Spray <john.spray@redhat.com>
Wed, 24 Jun 2015 22:58:36 +0000 (23:58 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 25 Jun 2015 13:47:13 +0000 (14:47 +0100)
commit8d9c95fa42dd1c31fcb65918fb2180281380269d
tree426b0b4b3cd4be1f565ff98860745dd10f506b54
parent2ac566c8239f407982403a927611e5e56c4a4ef6
mds: store layout on header object

This is surprisingly simple because we were already redundantly
calling store_backtrace whenever the layout changed!  That was
a side effect of the way add_old_pool is handled, the backtrace
version is bumped to latest even if the "old" pool is the
current one.

The upshot is that if we accept the existing behaviour of
also unnecessarily updating the 'parent' xattr, keeping
the new 'layout' xattr update requires no new dirty flags.  This
is a twitchy enough behaviour that new tests are needed to guard
against regressions though.

Fixes: #4161
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/CInode.cc