]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/ceph/inode.c
ceph: pre-allocate ceph_cap struct for ceph_add_cap()
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 18 Apr 2014 01:57:11 +0000 (09:57 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Fri, 6 Jun 2014 01:29:53 +0000 (09:29 +0800)
commitd9df2783507943316b305e177e5b1c157200c76f
treea351bc67fc9ae0b3d367d232657cf28136888f66
parentf98a128a55ff85d0087de89f304f10bd75e792aa
ceph: pre-allocate ceph_cap struct for ceph_add_cap()

So that ceph_add_cap() can be used while i_ceph_lock is locked.
This simplifies the code that handle cap import/export.

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