diff options
author | David Chinner <dgc@sgi.com> | 2007-06-05 02:24:27 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-07-14 01:30:05 -0400 |
commit | f4a9f28a909debe97cd3f6ca30e82e5811125bff (patch) | |
tree | 5c82c929cca07ad3df692ca11c6ac4871fa840b1 /fs/xfs/linux-2.6/xfs_buf.c | |
parent | 4e5ae8386b55677bde05bbd38b8fc82c67ad4564 (diff) |
[XFS] Flush the block device before closing it on unmount.
SGI-PV: 965630
SGI-Modid: xfs-linux-melb:xfs-kern:28774a
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index a3eff54a201c..2df63622354e 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1447,6 +1447,7 @@ xfs_free_buftarg( | |||
1447 | int external) | 1447 | int external) |
1448 | { | 1448 | { |
1449 | xfs_flush_buftarg(btp, 1); | 1449 | xfs_flush_buftarg(btp, 1); |
1450 | xfs_blkdev_issue_flush(btp); | ||
1450 | if (external) | 1451 | if (external) |
1451 | xfs_blkdev_put(btp->bt_bdev); | 1452 | xfs_blkdev_put(btp->bt_bdev); |
1452 | xfs_free_bufhash(btp); | 1453 | xfs_free_bufhash(btp); |