]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kclient: fix file refs vs special files
authorSage Weil <sage@newdream.net>
Tue, 17 Mar 2009 19:54:03 +0000 (12:54 -0700)
committerSage Weil <sage@newdream.net>
Tue, 17 Mar 2009 20:11:43 +0000 (13:11 -0700)
commit3f9b566d7ff22b98e690d245a4efe8ff48d658b7
treeb560e74b0aa8c9a3d781e933323b6b5f12afd46b
parentb4e78f8db400b9c6636eef34cdcbcf036ca3de00
kclient: fix file refs vs special files

Special inodes get their own fops, so we don't get a ceph_release
call.  Therefore, we need to drop any fmode refs we took in
ceph_init_file for those files (that is, any file where we don't
have i_fop->release set to ceph_release).

Add some BUG_ON's to ensure as much.
src/kernel/file.c