Re: [PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-19 Thread Namjae Jeon
2014-03-18 23:59 GMT+09:00, OGAWA Hirofumi : > Namjae Jeon writes: > >> +static void check_fallocated_region(struct inode *inode, sector_t >> iblock, >> +unsigned long *max_blocks, struct buffer_head *bh_result) >> +{ >> +struct super_block *sb = inode->i_sb; >> +sector_t last_

Re: [PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-18 Thread OGAWA Hirofumi
Namjae Jeon writes: > +static void check_fallocated_region(struct inode *inode, sector_t iblock, > + unsigned long *max_blocks, struct buffer_head *bh_result) > +{ > + struct super_block *sb = inode->i_sb; > + sector_t last_block, disk_block; > + const unsigned long blocks

[PATCH v4 3/6] fat: zero out seek range on _fat_get_block

2014-03-02 Thread Namjae Jeon
From: Namjae Jeon For normal buffered write operations, normally if we try to write to an offset > than file size, it does a cont_expand_zero till that offset. Now, in case of fallocated regions, since the blocks are already allocated. So, make it zero out that buffers for those blocks till the