diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2015-02-16 18:59:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-16 20:56:04 -0500 |
commit | 9c3ce9ec58716733232b97771b10f31901caf62e (patch) | |
tree | 25cc2bebbbc248d97f71262a542c7ee0e96411c0 /fs/ext2/inode.c | |
parent | 97443aa809a142b1e6db2ccfb046c3a962907204 (diff) |
ext2: get rid of most mentions of XIP in ext2
To help people transition, accept the 'xip' mount option (and report it in
/proc/mounts), but print a message encouraging people to switch over to
the 'dax' option.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.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: 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/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 034fd42eade0..6434bc000125 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -1286,7 +1286,7 @@ void ext2_set_inode_flags(struct inode *inode) | |||
1286 | inode->i_flags |= S_NOATIME; | 1286 | inode->i_flags |= S_NOATIME; |
1287 | if (flags & EXT2_DIRSYNC_FL) | 1287 | if (flags & EXT2_DIRSYNC_FL) |
1288 | inode->i_flags |= S_DIRSYNC; | 1288 | inode->i_flags |= S_DIRSYNC; |
1289 | if (test_opt(inode->i_sb, XIP)) | 1289 | if (test_opt(inode->i_sb, DAX)) |
1290 | inode->i_flags |= S_DAX; | 1290 | inode->i_flags |= S_DAX; |
1291 | } | 1291 | } |
1292 | 1292 | ||
@@ -1388,9 +1388,9 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino) | |||
1388 | 1388 | ||
1389 | if (S_ISREG(inode->i_mode)) { | 1389 | if (S_ISREG(inode->i_mode)) { |
1390 | inode->i_op = &ext2_file_inode_operations; | 1390 | inode->i_op = &ext2_file_inode_operations; |
1391 | if (test_opt(inode->i_sb, XIP)) { | 1391 | if (test_opt(inode->i_sb, DAX)) { |
1392 | inode->i_mapping->a_ops = &ext2_aops; | 1392 | inode->i_mapping->a_ops = &ext2_aops; |
1393 | inode->i_fop = &ext2_xip_file_operations; | 1393 | inode->i_fop = &ext2_dax_file_operations; |
1394 | } else if (test_opt(inode->i_sb, NOBH)) { | 1394 | } else if (test_opt(inode->i_sb, NOBH)) { |
1395 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 1395 | inode->i_mapping->a_ops = &ext2_nobh_aops; |
1396 | inode->i_fop = &ext2_file_operations; | 1396 | inode->i_fop = &ext2_file_operations; |