Re: ext4: delayed allocation support and mmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 17, 2011 at 2:49 PM, Jan Kara <jack@xxxxxxx> wrote:
>  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;
>        }

Oops! Sorry about that :(

Regards,
Surbhi.




>
>                                                                Honza
> --
> Jan Kara <jack@xxxxxxx>
> SUSE Labs, CR
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux