inode_to_bdi() will be used by inline functions for the planned cgroup writeback support. Move it to include/linux/backing-dev.h. This patch doesn't introduce any behavior changes. Signed-off-by: Tejun Heo <tj@xxxxxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> --- fs/fs-writeback.c | 10 ---------- include/linux/backing-dev.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 41c9f1e..5130895 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -66,16 +66,6 @@ int writeback_in_progress(struct backing_dev_info *bdi) } EXPORT_SYMBOL(writeback_in_progress); -static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) -{ - struct super_block *sb = inode->i_sb; - - if (sb_is_blkdev_sb(sb)) - return inode->i_mapping->backing_dev_info; - - return sb->s_bdi; -} - static inline struct inode *wb_inode(struct list_head *head) { return list_entry(head, struct inode, i_wb_list); diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index 918f5c9..3c6fd34 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -253,4 +253,14 @@ static inline int bdi_sched_wait(void *word) return 0; } +static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) +{ + struct super_block *sb = inode->i_sb; + + if (sb_is_blkdev_sb(sb)) + return inode->i_mapping->backing_dev_info; + + return sb->s_bdi; +} + #endif /* _LINUX_BACKING_DEV_H */ -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html