summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-03-13 19:44:32 +0800
committerSage Weil <sage@inktank.com>2013-05-01 21:17:07 -0700
commit2f276c511137d97e56b19e29865e1e6569315ccb (patch)
treef29a8088a6f312ec40f03b96d96b34e69154627a /lib
parent8a166d05369f6a0369bb194a795e6e3928ac6e34 (diff)
downloadop-kernel-dev-2f276c511137d97e56b19e29865e1e6569315ccb.zip
op-kernel-dev-2f276c511137d97e56b19e29865e1e6569315ccb.tar.gz
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 <zheng.z.yan@intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud