writeback: rework wb_[dec|inc]_stat family of functions
[muen/linux.git] / include / linux / backing-dev.h
index 334165c911f0ae78dc16d95fb1e98e0f5d6144d4..854e1bdd0b2a4978aa739d056103400ed65e1381 100644 (file)
@@ -69,34 +69,14 @@ static inline void __add_wb_stat(struct bdi_writeback *wb,
        percpu_counter_add_batch(&wb->stat[item], amount, WB_STAT_BATCH);
 }
 
-static inline void __inc_wb_stat(struct bdi_writeback *wb,
-                                enum wb_stat_item item)
-{
-       __add_wb_stat(wb, item, 1);
-}
-
 static inline void inc_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item)
 {
-       unsigned long flags;
-
-       local_irq_save(flags);
-       __inc_wb_stat(wb, item);
-       local_irq_restore(flags);
-}
-
-static inline void __dec_wb_stat(struct bdi_writeback *wb,
-                                enum wb_stat_item item)
-{
-       __add_wb_stat(wb, item, -1);
+       __add_wb_stat(wb, item, 1);
 }
 
 static inline void dec_wb_stat(struct bdi_writeback *wb, enum wb_stat_item item)
 {
-       unsigned long flags;
-
-       local_irq_save(flags);
-       __dec_wb_stat(wb, item);
-       local_irq_restore(flags);
+       __add_wb_stat(wb, item, -1);
 }
 
 static inline s64 wb_stat(struct bdi_writeback *wb, enum wb_stat_item item)