]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/libfs.c
KVM: MMU: protect kvm_mmu_change_mmu_pages with mmu_lock
[karo-tx-linux.git] / fs / libfs.c
index baeb71ee1cde7a0c372c134e83bf43ef5b32c098..8fc2407d2fe6ddc87441c4a55a59e9bb75264637 100644 (file)
@@ -216,8 +216,8 @@ int get_sb_pseudo(struct file_system_type *fs_type, char *name,
 
        s->s_flags = MS_NOUSER;
        s->s_maxbytes = ~0ULL;
-       s->s_blocksize = 1024;
-       s->s_blocksize_bits = 10;
+       s->s_blocksize = PAGE_SIZE;
+       s->s_blocksize_bits = PAGE_SHIFT;
        s->s_magic = magic;
        s->s_op = ops ? ops : &simple_super_operations;
        s->s_time_gran = 1;
@@ -360,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;