aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
committerTony Lindgren <tony@atomide.com>2018-08-28 12:58:03 -0400
commitea4d65f14f6aaa53e379b93c5544245ef081b3e7 (patch)
treea15485f4f1cf547a52b31fa8e16e14b9579b7200 /include/linux/backing-dev.h
parentce32d59ee2cd036f6e8a6ed17a06a0b0bec5c67c (diff)
parent496f3347d834aec91c38b45d6249ed00f58ad233 (diff)
Merge branch 'perm-fix' into omap-for-v4.19/fixes-v2
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