4 * Copyright (C) 2005 IBM Corporation
5 * Author: Carsten Otte (cotte@de.ibm.com)
10 #include <linux/genhd.h>
11 #include <linux/buffer_head.h>
12 #include <linux/blkdev.h>
16 void ext2_xip_verify_sb(struct super_block *sb)
18 struct ext2_sb_info *sbi = EXT2_SB(sb);
20 if ((sbi->s_mount_opt & EXT2_MOUNT_XIP) &&
21 !sb->s_bdev->bd_disk->fops->direct_access) {
22 sbi->s_mount_opt &= (~EXT2_MOUNT_XIP);
23 ext2_msg(sb, KERN_WARNING,
24 "warning: ignoring xip option - "
25 "not supported by bdev");