diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-02-28 21:57:54 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:16:11 -0400 |
commit | 3f99969f42300e52779ae0656678c2534097f2ea (patch) | |
tree | b3b07bc105f3c966c8a50e0d2e3bac5e5f3b4eeb /fs/ceph/super.h | |
parent | 6070e0c1e2b515ad5edc2f8224031b051bd08109 (diff) |
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.h | 2 |
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, | |||
694 | extern int ceph_inode_holds_cap(struct inode *inode, int mask); | 694 | extern int ceph_inode_holds_cap(struct inode *inode, int mask); |
695 | 695 | ||
696 | extern int ceph_inode_set_size(struct inode *inode, loff_t size); | 696 | extern int ceph_inode_set_size(struct inode *inode, loff_t size); |
697 | extern void __ceph_do_pending_vmtruncate(struct inode *inode); | 697 | extern void __ceph_do_pending_vmtruncate(struct inode *inode, bool needlock); |
698 | extern void ceph_queue_vmtruncate(struct inode *inode); | 698 | extern void ceph_queue_vmtruncate(struct inode *inode); |
699 | 699 | ||
700 | extern void ceph_queue_invalidate(struct inode *inode); | 700 | extern void ceph_queue_invalidate(struct inode *inode); |