]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: restructure finish_scatter_gather_update()
authorSage Weil <sage@newdream.net>
Fri, 5 Nov 2010 06:20:33 +0000 (23:20 -0700)
committerSage Weil <sage@newdream.net>
Fri, 5 Nov 2010 06:20:33 +0000 (23:20 -0700)
commit9586e9052c1dd1eb48aa5df6024d6b6b275cfdf9
treeee7bd8df2e948e172a50560fa5888f20cab0e003
parent669a8afaa44b0afd000d2c5d858039142238e822
mds: restructure finish_scatter_gather_update()

Separate behavior into two dimensions: whether or not we are updating
the dirfrag, and whether or not the dirfrag is stale.

Change the various helpers to NOT implicitly update accounted_*, as the
caller doesn't always want that, notably when we are non-stale but frozen.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/CDir.cc
src/mds/CInode.cc
src/mds/MDCache.cc
src/mds/mdstypes.h