Thread (3 messages) 3 messages, 2 authors, 2011-08-17

Re: ext4: delayed allocation support and mmap

From: Jan Kara <jack@suse.cz>
Date: 2011-08-17 11:49:44

  Hi,

On Wed 17-08-11 14:02:09, Surbhi Palande wrote:
Current ext4_page_mkwrite() implementation always allocates a block
through  ext4_get_block_write() or ext4_get_block().
  Why do you think so? Look at:
        /* Delalloc case is easy... */
        if (test_opt(inode->i_sb, DELALLOC) &&
            !ext4_should_journal_data(inode) &&
            !ext4_nonda_switch(inode->i_sb)) {
                do {
                        ret = __block_page_mkwrite(vma, vmf,
                                                   ext4_da_get_block_prep);
                } while (ret == -ENOSPC &&
                       ext4_should_retry_alloc(inode->i_sb, &retries));
                goto out_ret;
        }

								Honza
-- 
Jan Kara [off-list ref]
SUSE Labs, CR
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help