]> Git Repo - linux.git/commit
[PATCH] md: Change md/bitmap file handling to use bmap to file blocks-fix
authorNeilBrown <[email protected]>
Mon, 26 Jun 2006 07:27:49 +0000 (00:27 -0700)
committerLinus Torvalds <[email protected]>
Mon, 26 Jun 2006 16:58:38 +0000 (09:58 -0700)
commitce25c31bdd3b39266debd86a7732007e05983a67
tree1afafa2a68eb71b702db0a24aff2feb52b9f56c7
parentd785a06a0b9d0cd86b3cc1bf8e236e62af7b47ed
[PATCH] md: Change md/bitmap file handling to use bmap to file blocks-fix

Fix problems with new bmap based access to bitmap files.

1/ When not using a file based bitmap, attach a NULL list of buffers
   to each page so the common free_buffer routine can cope.
2/ Use submit_bh to read as well as write, rather than vfs_read.
   This makes read and write more symetric.
3/ sync the file before reading, to ensure that the page cache has no
   dirty pages that might get written out later.

Signed-off-by: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/bitmap.c
This page took 0.050398 seconds and 4 git commands to generate.