]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/libfs.c
OMAP3 GPTIMER: fix GPTIMER12 IRQ
[linux-2.6-omap-h63xx.git] / fs / libfs.c
index 7de05f7ce746d31dbb18374ba5ef8a37804392ef..4910a36f516e3081bcb61713260bb2ca637a9612 100644 (file)
@@ -44,7 +44,7 @@ static int simple_delete_dentry(struct dentry *dentry)
  */
 struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
 {
-       static struct dentry_operations simple_dentry_operations = {
+       static const struct dentry_operations simple_dentry_operations = {
                .d_delete = simple_delete_dentry,
        };
 
@@ -242,7 +242,8 @@ int get_sb_pseudo(struct file_system_type *fs_type, char *name,
        d_instantiate(dentry, root);
        s->s_root = dentry;
        s->s_flags |= MS_ACTIVE;
-       return simple_set_mnt(mnt, s);
+       simple_set_mnt(mnt, s);
+       return 0;
 
 Enomem:
        up_write(&s->s_umount);
@@ -359,7 +360,7 @@ int simple_write_begin(struct file *file, struct address_space *mapping,
        index = pos >> PAGE_CACHE_SHIFT;
        from = pos & (PAGE_CACHE_SIZE - 1);
 
-       page = __grab_cache_page(mapping, index);
+       page = grab_cache_page_write_begin(mapping, index, flags);
        if (!page)
                return -ENOMEM;