x86/mm/64: implement arch_sync_kernel_mappings()
[linux-2.6-microblaze.git] / mm / fadvise.c
index 4f17c83..0e66f2a 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <asm/unistd.h>
 
+#include "internal.h"
+
 /*
  * POSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could
  * deactivate the pages and clear PG_Referenced.
@@ -102,10 +104,6 @@ int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice)
                if (!nrpages)
                        nrpages = ~0UL;
 
-               /*
-                * Ignore return value because fadvise() shall return
-                * success even if filesystem can't retrieve a hint,
-                */
                force_page_cache_readahead(mapping, file, start_index, nrpages);
                break;
        case POSIX_FADV_NOREUSE: