]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: let MDS adjust readdir 'frag'
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 3 Mar 2014 01:20:44 +0000 (09:20 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 3 Apr 2014 02:33:52 +0000 (10:33 +0800)
commit5ffc049c9578bbc6154a322e4a153329551bb9a9
tree707fcbc2650015c8217cea0fe5008df38066ba78
parent4d5fc396722e7632cd1d7175b6164e30d9fe0f86
ceph: let MDS adjust readdir 'frag'

If readdir 'frag' is adjusted, readdir 'offset' should be reset.
Otherwise some dentries may be lost when readdir and fragmenting
directory happen at the some.

Another way to fix this issue is let MDS adjust readdir 'frag'.
The code that handles MDS reply reset the readdir 'offset' if
the readdir reply is different than the requested one.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/dir.c