]> 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)
commitcbd430cc95386a8937796d6d5ff7a07b72222f11
tree707fcbc2650015c8217cea0fe5008df38066ba78
parentf32ed7605419a082dad6d5a42c1285e5a1413c87
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