Use page_cache_xxx in fs/sync.

Reviewed-by: Dave Chinner <[EMAIL PROTECTED]>
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
---
 fs/sync.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: linux-2.6.24-rc6-mm1/fs/sync.c
===================================================================
--- linux-2.6.24-rc6-mm1.orig/fs/sync.c 2007-12-20 17:25:48.000000000 -0800
+++ linux-2.6.24-rc6-mm1/fs/sync.c      2007-12-26 19:51:07.850144128 -0800
@@ -260,8 +260,8 @@ int do_sync_mapping_range(struct address
        ret = 0;
        if (flags & SYNC_FILE_RANGE_WAIT_BEFORE) {
                ret = wait_on_page_writeback_range(mapping,
-                                       offset >> PAGE_CACHE_SHIFT,
-                                       endbyte >> PAGE_CACHE_SHIFT);
+                                       page_cache_index(mapping, offset),
+                                       page_cache_index(mapping, endbyte));
                if (ret < 0)
                        goto out;
        }
@@ -275,8 +275,8 @@ int do_sync_mapping_range(struct address
 
        if (flags & SYNC_FILE_RANGE_WAIT_AFTER) {
                ret = wait_on_page_writeback_range(mapping,
-                                       offset >> PAGE_CACHE_SHIFT,
-                                       endbyte >> PAGE_CACHE_SHIFT);
+                                       page_cache_index(mapping, offset),
+                                       page_cache_index(mapping, endbyte));
        }
 out:
        return ret;

-- 
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to