summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-03-01 10:57:54 +0800
committerSage Weil <sage@inktank.com>2013-05-01 21:16:11 -0700
commit3f99969f42300e52779ae0656678c2534097f2ea (patch)
treeb3b07bc105f3c966c8a50e0d2e3bac5e5f3b4eeb /fs/ceph/super.h
parent6070e0c1e2b515ad5edc2f8224031b051bd08109 (diff)
downloadblackbird-op-linux-3f99969f42300e52779ae0656678c2534097f2ea.tar.gz
blackbird-op-linux-3f99969f42300e52779ae0656678c2534097f2ea.zip
ceph: acquire i_mutex in __ceph_do_pending_vmtruncate
make __ceph_do_pending_vmtruncate() acquire the i_mutex if the caller does not hold the i_mutex, so ceph_aio_read() can call safely. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 20dd1ee3c4f0..a04eda714df4 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -694,7 +694,7 @@ extern int ceph_readdir_prepopulate(struct ceph_mds_request *req,
extern int ceph_inode_holds_cap(struct inode *inode, int mask);
extern int ceph_inode_set_size(struct inode *inode, loff_t size);
-extern void __ceph_do_pending_vmtruncate(struct inode *inode);
+extern void __ceph_do_pending_vmtruncate(struct inode *inode, bool needlock);
extern void ceph_queue_vmtruncate(struct inode *inode);
extern void ceph_queue_invalidate(struct inode *inode);
OpenPOWER on IntegriCloud