| /* |
| * linux/fs/ext2/xip.c |
| * |
| * Copyright (C) 2005 IBM Corporation |
| * Author: Carsten Otte (cotte@de.ibm.com) |
| */ |
| |
| #include <linux/mm.h> |
| #include <linux/fs.h> |
| #include <linux/genhd.h> |
| #include <linux/buffer_head.h> |
| #include <linux/blkdev.h> |
| #include "ext2.h" |
| #include "xip.h" |
| |
| void ext2_xip_verify_sb(struct super_block *sb) |
| { |
| struct ext2_sb_info *sbi = EXT2_SB(sb); |
| |
| if ((sbi->s_mount_opt & EXT2_MOUNT_XIP) && |
| !sb->s_bdev->bd_disk->fops->direct_access) { |
| sbi->s_mount_opt &= (~EXT2_MOUNT_XIP); |
| ext2_msg(sb, KERN_WARNING, |
| "warning: ignoring xip option - " |
| "not supported by bdev"); |
| } |
| } |