OSDN Git Service

ceph: fix trim caps
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 22 Nov 2013 05:56:24 +0000 (13:56 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 21 Jan 2014 05:29:32 +0000 (13:29 +0800)
commit979abfdd5c7ca4abe3f0157a6ea9bfef41114c89
treeae9320e0a88a3e393954f560033a7d0f429b3b85
parent9563f88c1fa01341d125e396edc654a8dbcab2d2
ceph: fix trim caps

- don't trim auth cap if there are flusing caps
- don't trim auth cap if any 'write' cap is wanted
- allow trimming non-auth cap even if the inode is dirty

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