fs: Add helper to clean bdev aliases under a bh and use it
[sfrench/cifs-2.6.git] / include / linux / buffer_head.h
index 9c9c73ce7d4f8f438710e56175f467b91e337803..d1ab91fc6d43e30ee26a6922ff285f3fc6f48235 100644 (file)
@@ -171,6 +171,10 @@ int sync_mapping_buffers(struct address_space *mapping);
 void unmap_underlying_metadata(struct block_device *bdev, sector_t block);
 void clean_bdev_aliases(struct block_device *bdev, sector_t block,
                        sector_t len);
+static inline void clean_bdev_bh_alias(struct buffer_head *bh)
+{
+       clean_bdev_aliases(bh->b_bdev, bh->b_blocknr, 1);
+}
 
 void mark_buffer_async_write(struct buffer_head *bh);
 void __wait_on_buffer(struct buffer_head *);