From: Yan, Zheng Date: Wed, 13 Mar 2013 11:44:32 +0000 (+0800) Subject: ceph: use i_release_count to indicate dir's completeness X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~189 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f276c511137d97e56b19e29865e1e6569315ccb;p=pandora-kernel.git ceph: use i_release_count to indicate dir's completeness Current ceph code tracks directory's completeness in two places. ceph_readdir() checks i_release_count to decide if it can set the I_COMPLETE flag in i_ceph_flags. All other places check the I_COMPLETE flag. This indirection introduces locking complexity. This patch adds a new variable i_complete_count to ceph_inode_info. Set i_release_count's value to it when marking a directory complete. By comparing the two variables, we know if a directory is complete Signed-off-by: Yan, Zheng --- Reading git-diff-tree failed