FIXCES 20560
fix wrapping error on page offset
AFS_GUNLOCK();
schedule();
#ifdef AFS_LINUX26_ENV
-#ifdef CONFIG_PF
+#ifdef CONFIG_PM
if (current->flags & PF_FREEZE)
refrigerator(PF_FREEZE);
#endif
} else
schedule_timeout(ticks);
#ifdef AFS_LINUX26_ENV
-#ifdef CONFIG_PF
+#ifdef CONFIG_PM
if (current->flags & PF_FREEZE)
refrigerator(PF_FREEZE);
#endif
cred_t *credp = crref();
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
char *address;
- afs_offs_t offset = pp->index << PAGE_CACHE_SHIFT;
+ afs_offs_t offset = page_offset(pp);
#else
ulong address = afs_linux_page_address(pp);
afs_offs_t offset = pageoff(pp);
int f_flags = 0;
buffer = kmap(pp) + offset;
- base = (pp->index << PAGE_CACHE_SHIFT) + offset;
+ base = page_offset(pp) + offset;
credp = crref();
lock_kernel();