]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - mm/fadvise.c
mm/swapfile.c: tmp is always smaller than max
[thirdparty/linux.git] / mm / fadvise.c
index 4f17c83db5758d03bc06e05e38a60357ad593434..0e66f2aaeea3e076dc4ddcfb39cb2aad13709435 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: