ceph: set dn offset when spliced
authorSage Weil <sage@newdream.net>
Tue, 4 May 2010 05:08:02 +0000 (22:08 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:28 +0000 (15:25 -0700)
commit1cd3935bedccf592d44343890251452a6dd74fc4
treeb088e425d19dbca7d7702e9f1bfa0b2dfa85eba0
parent1b7facc41b42c2ab904b2f88b64b1f8ca0ca6cb7
ceph: set dn offset when spliced

We want to assign an offset when the dentry goes from null to linked, which
is always done by splice_dentry().  Notably, we should NOT assign an
offset when a dentry is first created and is still null.

BUG if we try to splice a non-null dentry (we shouldn't).

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