fs: Add helper to clean bdev aliases under a bh and use it
[sfrench/cifs-2.6.git] / fs / ufs / balloc.c
index 67e085d591d8398aaf07ab0102e602b70ca9ae8e..a0376a2c1c29c7adc4a7a60976efd0bf49c8c9dd 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/buffer_head.h>
 #include <linux/capability.h>
 #include <linux/bitops.h>
+#include <linux/bio.h>
 #include <asm/byteorder.h>
 
 #include "ufs_fs.h"
@@ -306,8 +307,7 @@ static void ufs_change_blocknr(struct inode *inode, sector_t beg,
                             (unsigned long long)(pos + newb), pos);
 
                        bh->b_blocknr = newb + pos;
-                       unmap_underlying_metadata(bh->b_bdev,
-                                                 bh->b_blocknr);
+                       clean_bdev_bh_alias(bh);
                        mark_buffer_dirty(bh);
                        ++j;
                        bh = bh->b_this_page;