X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=fs%2Fcifs%2Ffile.c;h=0a72840a88f1a014fcfe2db71734fc7a4f691fdc;hb=6ebeca342f96a7c371ed5fe53189dd56fe0c0330;hp=cd108607a070678c52aa8e0e860a92dda4ed97ee;hpb=df8ba5f160335cf9ea09c0a037235331a171fe1a;p=linux-2.6-microblaze.git diff --git a/fs/cifs/file.c b/fs/cifs/file.c index cd108607a070..0a72840a88f1 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -4619,7 +4619,7 @@ read_complete: static int cifs_readpage(struct file *file, struct page *page) { - loff_t offset = (loff_t)page->index << PAGE_SHIFT; + loff_t offset = page_file_offset(page); int rc = -EACCES; unsigned int xid;