summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:46:16 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:46:16 -0800
commita34c0ae9ebd6ba36cb5b3b12ffe8b3ef83a50c0b (patch)
treeeff6262cdff9bd732bafe04b83a75218ce1e4a16 /include/linux
parent749e32b6f44069585527dd1f1ce06297614413e5 (diff)
[PATCH] loop: remove the bio remapping capability
This patch removes the loop feature wherein we remap BIOs for block-backed loop. So file-backed and block-backed loop are handled identically. It cleans up the code a lot and fixes the low-on-memory lockups which block-backed loop currently suffers. What we lose is the journalling ordering guarantees which exts-on-loop-on-blockdev had. But dm-crypt provides that.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/loop.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/loop.h b/include/linux/loop.h
index a6b53b2ebbcc..a9a6525c2112 100644
--- a/include/linux/loop.h
+++ b/include/linux/loop.h
@@ -70,8 +70,7 @@ struct loop_device {
/*
* Loop flags
*/
-#define LO_FLAGS_DO_BMAP 1
-#define LO_FLAGS_READ_ONLY 2
+#define LO_FLAGS_READ_ONLY 1
#include <asm/posix_types.h> /* for __kernel_old_dev_t */
#include <asm/types.h> /* for __u64 */