]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ceph: fix dn offset during readdir_prepopulate
authorSage Weil <sage@newdream.net>
Mon, 13 Sep 2010 18:39:20 +0000 (11:39 -0700)
committerSage Weil <sage@newdream.net>
Mon, 13 Sep 2010 18:40:36 +0000 (11:40 -0700)
commit467c525109d5d542d7d416b0c11bdd54610fe2f4
treeabde91184dc9ccecc9efc784520b184cae772fb1
parenta77d9f7dce7600058d56f0670ed29d77abffcde2
ceph: fix dn offset during readdir_prepopulate

When adding the readdir results to the cache, ceph_set_dentry_offset was
clobbered our just-set offset.  This can cause the readdir result offsets
to get out of sync with the server.  Add an argument to the helper so
that it does not.

This bug was introduced by 1cd3935bedccf592d44343890251452a6dd74fc4.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/inode.c