diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2015-02-16 18:59:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-16 20:56:04 -0500 |
commit | 6cd176a51e52e5218b1aa97e1ec916bac25a9b7e (patch) | |
tree | aa4154016ecea4e63ab0dda6e00ada1d718d31df /fs/ext2 | |
parent | 07642381d5ad800d021bb80842bfebb100b12fc2 (diff) |
vfs,ext2: remove CONFIG_EXT2_FS_XIP and rename CONFIG_FS_XIP to CONFIG_FS_DAX
The fewer Kconfig options we have the better. Use the generic
CONFIG_FS_DAX to enable XIP support in ext2 as well as in the core.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Boaz Harrosh <boaz@plexistor.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/Kconfig | 11 | ||||
-rw-r--r-- | fs/ext2/ext2.h | 2 | ||||
-rw-r--r-- | fs/ext2/file.c | 4 | ||||
-rw-r--r-- | fs/ext2/super.c | 4 |
4 files changed, 5 insertions, 16 deletions
diff --git a/fs/ext2/Kconfig b/fs/ext2/Kconfig index 14a6780fd034..c634874e12d9 100644 --- a/fs/ext2/Kconfig +++ b/fs/ext2/Kconfig | |||
@@ -42,14 +42,3 @@ config EXT2_FS_SECURITY | |||
42 | 42 | ||
43 | If you are not using a security module that requires using | 43 | If you are not using a security module that requires using |
44 | extended attributes for file security labels, say N. | 44 | extended attributes for file security labels, say N. |
45 | |||
46 | config EXT2_FS_XIP | ||
47 | bool "Ext2 execute in place support" | ||
48 | depends on EXT2_FS && MMU | ||
49 | help | ||
50 | Execute in place can be used on memory-backed block devices. If you | ||
51 | enable this option, you can select to mount block devices which are | ||
52 | capable of this feature without using the page cache. | ||
53 | |||
54 | If you do not use a block device that is capable of using this, | ||
55 | or if unsure, say N. | ||
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index 30604c4d70e6..6854038c09ae 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h | |||
@@ -380,7 +380,7 @@ struct ext2_inode { | |||
380 | #define EXT2_MOUNT_NO_UID32 0x000200 /* Disable 32-bit UIDs */ | 380 | #define EXT2_MOUNT_NO_UID32 0x000200 /* Disable 32-bit UIDs */ |
381 | #define EXT2_MOUNT_XATTR_USER 0x004000 /* Extended user attributes */ | 381 | #define EXT2_MOUNT_XATTR_USER 0x004000 /* Extended user attributes */ |
382 | #define EXT2_MOUNT_POSIX_ACL 0x008000 /* POSIX Access Control Lists */ | 382 | #define EXT2_MOUNT_POSIX_ACL 0x008000 /* POSIX Access Control Lists */ |
383 | #ifdef CONFIG_FS_XIP | 383 | #ifdef CONFIG_FS_DAX |
384 | #define EXT2_MOUNT_XIP 0x010000 /* Execute in place */ | 384 | #define EXT2_MOUNT_XIP 0x010000 /* Execute in place */ |
385 | #else | 385 | #else |
386 | #define EXT2_MOUNT_XIP 0 | 386 | #define EXT2_MOUNT_XIP 0 |
diff --git a/fs/ext2/file.c b/fs/ext2/file.c index a61c93fd9dce..de8174d1e973 100644 --- a/fs/ext2/file.c +++ b/fs/ext2/file.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include "xattr.h" | 25 | #include "xattr.h" |
26 | #include "acl.h" | 26 | #include "acl.h" |
27 | 27 | ||
28 | #ifdef CONFIG_EXT2_FS_XIP | 28 | #ifdef CONFIG_FS_DAX |
29 | static int ext2_dax_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | 29 | static int ext2_dax_fault(struct vm_area_struct *vma, struct vm_fault *vmf) |
30 | { | 30 | { |
31 | return dax_fault(vma, vmf, ext2_get_block); | 31 | return dax_fault(vma, vmf, ext2_get_block); |
@@ -108,7 +108,7 @@ const struct file_operations ext2_file_operations = { | |||
108 | .splice_write = iter_file_splice_write, | 108 | .splice_write = iter_file_splice_write, |
109 | }; | 109 | }; |
110 | 110 | ||
111 | #ifdef CONFIG_EXT2_FS_XIP | 111 | #ifdef CONFIG_FS_DAX |
112 | const struct file_operations ext2_xip_file_operations = { | 112 | const struct file_operations ext2_xip_file_operations = { |
113 | .llseek = generic_file_llseek, | 113 | .llseek = generic_file_llseek, |
114 | .read = new_sync_read, | 114 | .read = new_sync_read, |
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 50342583db1f..5f029d8c3a02 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -291,7 +291,7 @@ static int ext2_show_options(struct seq_file *seq, struct dentry *root) | |||
291 | seq_puts(seq, ",grpquota"); | 291 | seq_puts(seq, ",grpquota"); |
292 | #endif | 292 | #endif |
293 | 293 | ||
294 | #if defined(CONFIG_EXT2_FS_XIP) | 294 | #ifdef CONFIG_FS_DAX |
295 | if (sbi->s_mount_opt & EXT2_MOUNT_XIP) | 295 | if (sbi->s_mount_opt & EXT2_MOUNT_XIP) |
296 | seq_puts(seq, ",xip"); | 296 | seq_puts(seq, ",xip"); |
297 | #endif | 297 | #endif |
@@ -558,7 +558,7 @@ static int parse_options(char *options, struct super_block *sb) | |||
558 | break; | 558 | break; |
559 | #endif | 559 | #endif |
560 | case Opt_xip: | 560 | case Opt_xip: |
561 | #ifdef CONFIG_EXT2_FS_XIP | 561 | #ifdef CONFIG_FS_DAX |
562 | set_opt (sbi->s_mount_opt, XIP); | 562 | set_opt (sbi->s_mount_opt, XIP); |
563 | #else | 563 | #else |
564 | ext2_msg(sb, KERN_INFO, "xip option not supported"); | 564 | ext2_msg(sb, KERN_INFO, "xip option not supported"); |