summaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/backing-dev.h')
-rw-r--r--include/linux/backing-dev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index 72ca0f3d39f3..c28a47cbe355 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -404,13 +404,13 @@ static inline bool inode_cgwb_enabled(struct inode *inode)
404static inline struct bdi_writeback_congested * 404static inline struct bdi_writeback_congested *
405wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp) 405wb_congested_get_create(struct backing_dev_info *bdi, int blkcg_id, gfp_t gfp)
406{ 406{
407 atomic_inc(&bdi->wb_congested->refcnt); 407 refcount_inc(&bdi->wb_congested->refcnt);
408 return bdi->wb_congested; 408 return bdi->wb_congested;
409} 409}
410 410
411static inline void wb_congested_put(struct bdi_writeback_congested *congested) 411static inline void wb_congested_put(struct bdi_writeback_congested *congested)
412{ 412{
413 if (atomic_dec_and_test(&congested->refcnt)) 413 if (refcount_dec_and_test(&congested->refcnt))
414 kfree(congested); 414 kfree(congested);
415} 415}
416 416