aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ntfs/file.c5
-rw-r--r--fs/ntfs/super.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c
index f5ec1ce7a532..643faa44f22b 100644
--- a/fs/ntfs/file.c
+++ b/fs/ntfs/file.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * file.c - NTFS kernel file operations. Part of the Linux-NTFS project. 2 * file.c - NTFS kernel file operations. Part of the Linux-NTFS project.
3 * 3 *
4 * Copyright (c) 2001-2011 Anton Altaparmakov and Tuxera Inc. 4 * Copyright (c) 2001-2014 Anton Altaparmakov and Tuxera Inc.
5 * 5 *
6 * This program/include file is free software; you can redistribute it and/or 6 * This program/include file is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as published 7 * modify it under the terms of the GNU General Public License as published
@@ -410,7 +410,8 @@ static inline int __ntfs_grab_cache_pages(struct address_space *mapping,
410 BUG_ON(!nr_pages); 410 BUG_ON(!nr_pages);
411 err = nr = 0; 411 err = nr = 0;
412 do { 412 do {
413 pages[nr] = find_lock_page(mapping, index); 413 pages[nr] = find_get_page_flags(mapping, index, FGP_LOCK |
414 FGP_ACCESSED);
414 if (!pages[nr]) { 415 if (!pages[nr]) {
415 if (!*cached_page) { 416 if (!*cached_page) {
416 *cached_page = page_cache_alloc(mapping); 417 *cached_page = page_cache_alloc(mapping);
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index 6c3296e546c3..9e1e112074fb 100644
--- a/fs/ntfs/super.c
+++ b/fs/ntfs/super.c
@@ -3208,7 +3208,7 @@ static void __exit exit_ntfs_fs(void)
3208} 3208}
3209 3209
3210MODULE_AUTHOR("Anton Altaparmakov <anton@tuxera.com>"); 3210MODULE_AUTHOR("Anton Altaparmakov <anton@tuxera.com>");
3211MODULE_DESCRIPTION("NTFS 1.2/3.x driver - Copyright (c) 2001-2011 Anton Altaparmakov and Tuxera Inc."); 3211MODULE_DESCRIPTION("NTFS 1.2/3.x driver - Copyright (c) 2001-2014 Anton Altaparmakov and Tuxera Inc.");
3212MODULE_VERSION(NTFS_VERSION); 3212MODULE_VERSION(NTFS_VERSION);
3213MODULE_LICENSE("GPL"); 3213MODULE_LICENSE("GPL");
3214#ifdef DEBUG 3214#ifdef DEBUG