]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: pin inodes on LogSegment::truncating_inodes list
authorSage Weil <sage.weil@dreamhost.com>
Thu, 28 Jul 2011 04:29:05 +0000 (21:29 -0700)
committerSage Weil <sage@newdream.net>
Thu, 28 Jul 2011 16:49:23 +0000 (09:49 -0700)
commit06ebba7f7bd45085c58556843ea850557a0ca17f
treed4465d17461744cc4918ba5ec34fc7eb9b1fd997
parenta20b15cfa529da40e578b83171d19cea06148db3
mds: pin inodes on LogSegment::truncating_inodes list

For active MDS, pin when we add to the list, unpin when we finish
truncating.

For replay, pin when we replay a truncate start, unpin when we replay a
truncate finish.  Use a nice helper for both.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/journal.cc