RE: [PATCH v5 1/5] fat: add i_disksize to represent uninitialized size

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

 



> 
> Namjae Jeon <namjae.jeon@xxxxxxxxxxx> writes:
> 
> > Adding i_disksize to represent uninitialized allocated size.
> > And mmu_private represent initialized allocated size.
> > i_disksize - is always kept cluster size aligned
> > mmu_private - is normally block size aligned
> 
> Hi,
Hi OGAWA,
> 
> While reading this with fresh mind, I've now noticed i_disksize is
> lesser i_blocks in fatfs?
Yes.
> 
> Well, if fallocate inode, what number should we return? I.e. it returns
> really allocated blocks, or fake blocks in i_size?
It should return allocated blocks. And i_blocks is also updated by
fat_chain_add in fat_fallocate.
> 
> If we can use i_blocks (fatfs doesn't have hole), maybe, this patch
> become simpler. If not, I think we should add i_disksize changes more
> like i_blocks does.
Yes, We can use i_blocks instead of i_disksize.
> 
> What do you think?
As you pointed out, Using i_blocks will make this patch more simple.

Thanks for review!
> 
> Thanks.
> 
> OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux