diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2015-02-16 18:59:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-16 20:56:03 -0500 |
commit | e748dcd095ddee50e7a7deda2e26247715318a2e (patch) | |
tree | fc76626987c4caa57a1511f671bc105a179d583e /mm | |
parent | 95ec8daba310b44302d2977dd54b16886527b681 (diff) |
vfs: remove get_xip_mem
All callers of get_xip_mem() are now gone. Remove checks for it,
initialisers of it, documentation of it and the only implementation of it.
Also remove mm/filemap_xip.c as it is now empty. Also remove
documentation of the long-gone get_xip_page().
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 'mm')
-rw-r--r-- | mm/Makefile | 1 | ||||
-rw-r--r-- | mm/fadvise.c | 6 | ||||
-rw-r--r-- | mm/filemap_xip.c | 24 | ||||
-rw-r--r-- | mm/madvise.c | 2 |
4 files changed, 5 insertions, 28 deletions
diff --git a/mm/Makefile b/mm/Makefile index 088c68e9ec35..3c1caa2693bd 100644 --- a/mm/Makefile +++ b/mm/Makefile | |||
@@ -55,7 +55,6 @@ obj-$(CONFIG_KMEMCHECK) += kmemcheck.o | |||
55 | obj-$(CONFIG_KASAN) += kasan/ | 55 | obj-$(CONFIG_KASAN) += kasan/ |
56 | obj-$(CONFIG_FAILSLAB) += failslab.o | 56 | obj-$(CONFIG_FAILSLAB) += failslab.o |
57 | obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o | 57 | obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o |
58 | obj-$(CONFIG_FS_XIP) += filemap_xip.o | ||
59 | obj-$(CONFIG_MIGRATION) += migrate.o | 58 | obj-$(CONFIG_MIGRATION) += migrate.o |
60 | obj-$(CONFIG_QUICKLIST) += quicklist.o | 59 | obj-$(CONFIG_QUICKLIST) += quicklist.o |
61 | obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += huge_memory.o | 60 | obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += huge_memory.o |
diff --git a/mm/fadvise.c b/mm/fadvise.c index fac23ecf8d72..4a3907cf79f8 100644 --- a/mm/fadvise.c +++ b/mm/fadvise.c | |||
@@ -28,6 +28,7 @@ | |||
28 | SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) | 28 | SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) |
29 | { | 29 | { |
30 | struct fd f = fdget(fd); | 30 | struct fd f = fdget(fd); |
31 | struct inode *inode; | ||
31 | struct address_space *mapping; | 32 | struct address_space *mapping; |
32 | struct backing_dev_info *bdi; | 33 | struct backing_dev_info *bdi; |
33 | loff_t endbyte; /* inclusive */ | 34 | loff_t endbyte; /* inclusive */ |
@@ -39,7 +40,8 @@ SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) | |||
39 | if (!f.file) | 40 | if (!f.file) |
40 | return -EBADF; | 41 | return -EBADF; |
41 | 42 | ||
42 | if (S_ISFIFO(file_inode(f.file)->i_mode)) { | 43 | inode = file_inode(f.file); |
44 | if (S_ISFIFO(inode->i_mode)) { | ||
43 | ret = -ESPIPE; | 45 | ret = -ESPIPE; |
44 | goto out; | 46 | goto out; |
45 | } | 47 | } |
@@ -50,7 +52,7 @@ SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice) | |||
50 | goto out; | 52 | goto out; |
51 | } | 53 | } |
52 | 54 | ||
53 | if (mapping->a_ops->get_xip_mem) { | 55 | if (IS_DAX(inode)) { |
54 | switch (advice) { | 56 | switch (advice) { |
55 | case POSIX_FADV_NORMAL: | 57 | case POSIX_FADV_NORMAL: |
56 | case POSIX_FADV_RANDOM: | 58 | case POSIX_FADV_RANDOM: |
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c deleted file mode 100644 index 8e3f99b61959..000000000000 --- a/mm/filemap_xip.c +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | /* | ||
2 | * linux/mm/filemap_xip.c | ||
3 | * | ||
4 | * Copyright (C) 2005 IBM Corporation | ||
5 | * Author: Carsten Otte <cotte@de.ibm.com> | ||
6 | * | ||
7 | * derived from linux/mm/filemap.c - Copyright (C) Linus Torvalds | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | #include <linux/fs.h> | ||
12 | #include <linux/backing-dev.h> | ||
13 | #include <linux/pagemap.h> | ||
14 | #include <linux/export.h> | ||
15 | #include <linux/uio.h> | ||
16 | #include <linux/rmap.h> | ||
17 | #include <linux/mmu_notifier.h> | ||
18 | #include <linux/sched.h> | ||
19 | #include <linux/seqlock.h> | ||
20 | #include <linux/mutex.h> | ||
21 | #include <linux/gfp.h> | ||
22 | #include <asm/tlbflush.h> | ||
23 | #include <asm/io.h> | ||
24 | |||
diff --git a/mm/madvise.c b/mm/madvise.c index 1077cbdc8b52..d551475517bf 100644 --- a/mm/madvise.c +++ b/mm/madvise.c | |||
@@ -239,7 +239,7 @@ static long madvise_willneed(struct vm_area_struct *vma, | |||
239 | return -EBADF; | 239 | return -EBADF; |
240 | #endif | 240 | #endif |
241 | 241 | ||
242 | if (file->f_mapping->a_ops->get_xip_mem) { | 242 | if (IS_DAX(file_inode(file))) { |
243 | /* no bad return value, but ignore advice */ | 243 | /* no bad return value, but ignore advice */ |
244 | return 0; | 244 | return 0; |
245 | } | 245 | } |