]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/minix/dir.c
OMAP1: clock: Typo fix for clock in omap1
[linux-2.6-omap-h63xx.git] / fs / minix / dir.c
index f70433816a3806ab6846b75dec1ee418fcd75f2c..d4946c4c90e2f2b989f410fc3b69552a382303f4 100644 (file)
@@ -280,7 +280,7 @@ int minix_add_link(struct dentry *dentry, struct inode *inode)
        return -EINVAL;
 
 got_it:
-       pos = (page->index >> PAGE_CACHE_SHIFT) + p - (char*)page_address(page);
+       pos = page_offset(page) + p - (char *)page_address(page);
        err = __minix_write_begin(NULL, page->mapping, pos, sbi->s_dirsize,
                                        AOP_FLAG_UNINTERRUPTIBLE, &page, NULL);
        if (err)