diff options
author | Sage Weil <sage@newdream.net> | 2010-02-09 18:24:44 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-11 14:48:54 -0500 |
commit | 3c6f6b79a64db7f1c7abf09d693db3b0066784fb (patch) | |
tree | e17b4cd848212b0556180331280044dd1526b742 /fs/ceph/super.h | |
parent | 6a026589ba333185c466c906376fe022a27a53f9 (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.h | 19 |
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 | ||
576 | static 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 | |||
582 | static 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, | |||
772 | extern int ceph_inode_holds_cap(struct inode *inode, int mask); | 760 | extern int ceph_inode_holds_cap(struct inode *inode, int mask); |
773 | 761 | ||
774 | extern int ceph_inode_set_size(struct inode *inode, loff_t size); | 762 | extern int ceph_inode_set_size(struct inode *inode, loff_t size); |
775 | extern void ceph_inode_writeback(struct work_struct *work); | ||
776 | extern void ceph_vmtruncate_work(struct work_struct *work); | ||
777 | extern void __ceph_do_pending_vmtruncate(struct inode *inode); | 763 | extern void __ceph_do_pending_vmtruncate(struct inode *inode); |
778 | extern void __ceph_queue_vmtruncate(struct inode *inode); | 764 | extern void ceph_queue_vmtruncate(struct inode *inode); |
765 | |||
766 | extern void ceph_queue_invalidate(struct inode *inode); | ||
767 | extern void ceph_queue_writeback(struct inode *inode); | ||
779 | 768 | ||
780 | extern int ceph_do_getattr(struct inode *inode, int mask); | 769 | extern int ceph_do_getattr(struct inode *inode, int mask); |
781 | extern int ceph_permission(struct inode *inode, int mask); | 770 | extern int ceph_permission(struct inode *inode, int mask); |