]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ext2: disallow setting xip on remount
authorCarsten Otte <cotte@de.ibm.com>
Sun, 24 Jun 2007 00:16:46 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Jun 2007 15:59:12 +0000 (08:59 -0700)
commit266f5aa0970409bf1ebdf9fc4e65a1186eeed3c2
tree5c0ba331d323ddd3b2090631dc6a852a498257de
parent4f84e4be53a04a65d97bf0faa0c8f99e29bc0170
ext2: disallow setting xip on remount

Yan Zheng pointed out that ext2_remount lacks checking if -o xip should be
enabled or not.  This patch checks for presence of direct_access on the
backing block device and if the blocksize meets the requirements.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Cc: Yan Zheng <yanzheng@21cn.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext2/super.c