aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-09 18:24:44 -0500
committerSage Weil <sage@newdream.net>2010-02-11 14:48:54 -0500
commit3c6f6b79a64db7f1c7abf09d693db3b0066784fb (patch)
treee17b4cd848212b0556180331280044dd1526b742 /fs/ceph/super.h
parent6a026589ba333185c466c906376fe022a27a53f9 (diff)
ceph: cleanup async writeback, truncation, invalidate helpers
Grab inode ref in helper. Make work functions static, with consistent naming. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 3930fb685f0b..b2adfccbab98 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -573,18 +573,6 @@ static inline struct ceph_client *ceph_sb_to_client(struct super_block *sb)
573 return (struct ceph_client *)sb->s_fs_info; 573 return (struct ceph_client *)sb->s_fs_info;
574} 574}
575 575
576static inline int ceph_queue_writeback(struct inode *inode)
577{
578 return queue_work(ceph_inode_to_client(inode)->wb_wq,
579 &ceph_inode(inode)->i_wb_work);
580}
581
582static inline int ceph_queue_page_invalidation(struct inode *inode)
583{
584 return queue_work(ceph_inode_to_client(inode)->pg_inv_wq,
585 &ceph_inode(inode)->i_pg_inv_work);
586}
587
588 576
589/* 577/*
590 * we keep buffered readdir results attached to file->private_data 578 * we keep buffered readdir results attached to file->private_data
@@ -772,10 +760,11 @@ extern int ceph_readdir_prepopulate(struct ceph_mds_request *req,
772extern int ceph_inode_holds_cap(struct inode *inode, int mask); 760extern int ceph_inode_holds_cap(struct inode *inode, int mask);
773 761
774extern int ceph_inode_set_size(struct inode *inode, loff_t size); 762extern int ceph_inode_set_size(struct inode *inode, loff_t size);
775extern void ceph_inode_writeback(struct work_struct *work);
776extern void ceph_vmtruncate_work(struct work_struct *work);
777extern void __ceph_do_pending_vmtruncate(struct inode *inode); 763extern void __ceph_do_pending_vmtruncate(struct inode *inode);
778extern void __ceph_queue_vmtruncate(struct inode *inode); 764extern void ceph_queue_vmtruncate(struct inode *inode);
765
766extern void ceph_queue_invalidate(struct inode *inode);
767extern void ceph_queue_writeback(struct inode *inode);
779 768
780extern int ceph_do_getattr(struct inode *inode, int mask); 769extern int ceph_do_getattr(struct inode *inode, int mask);
781extern int ceph_permission(struct inode *inode, int mask); 770extern int ceph_permission(struct inode *inode, int mask);