Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-14 Thread Namjae Jeon
2014-02-14 16:30 GMT+09:00, OGAWA Hirofumi : > Namjae Jeon writes: > [...] > + /* Release unwritten fallocated blocks on inode eviction. */ > + if (MSDOS_I(inode)->mmu_private < MSDOS_I(inode)->i_disksize) { > + int err; > +

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-14 Thread Namjae Jeon
2014-02-14 16:30 GMT+09:00, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Namjae Jeon linkinj...@gmail.com writes: [...] + /* Release unwritten fallocated blocks on inode eviction. */ + if (MSDOS_I(inode)-mmu_private MSDOS_I(inode)-i_disksize) { + int err; +

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-13 Thread OGAWA Hirofumi
Namjae Jeon writes: >>> [...] >>> + /* Release unwritten fallocated blocks on inode eviction. */ + if (MSDOS_I(inode)->mmu_private < MSDOS_I(inode)->i_disksize) { + int err; + fat_truncate_blocks(inode,

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-13 Thread Namjae Jeon
>> [...] >> >>> + /* Release unwritten fallocated blocks on inode eviction. */ >>> + if (MSDOS_I(inode)->mmu_private < MSDOS_I(inode)->i_disksize) { >>> + int err; >>> + fat_truncate_blocks(inode, MSDOS_I(inode)->mmu_private); >>> +

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-13 Thread Namjae Jeon
[...] + /* Release unwritten fallocated blocks on inode eviction. */ + if (MSDOS_I(inode)-mmu_private MSDOS_I(inode)-i_disksize) { + int err; + fat_truncate_blocks(inode, MSDOS_I(inode)-mmu_private); + /* Fallocate

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-13 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes: [...] + /* Release unwritten fallocated blocks on inode eviction. */ + if (MSDOS_I(inode)-mmu_private MSDOS_I(inode)-i_disksize) { + int err; + fat_truncate_blocks(inode,

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-03 Thread Namjae Jeon
2014-02-03, OGAWA Hirofumi : > > Sorry for long delay. > > Namjae Jeon writes: > >> +if (mode & FALLOC_FL_KEEP_SIZE) { >> +/* First compute the number of clusters to be allocated */ >> +mm_bytes = offset + len - round_up(MSDOS_I(inode)->mmu_private, >> +

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-03 Thread Namjae Jeon
2014-02-03, OGAWA Hirofumi hirof...@mail.parknet.co.jp: Sorry for long delay. Namjae Jeon linkinj...@gmail.com writes: +if (mode FALLOC_FL_KEEP_SIZE) { +/* First compute the number of clusters to be allocated */ +mm_bytes = offset + len -

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-02 Thread OGAWA Hirofumi
Sorry for long delay. Namjae Jeon writes: > + if (mode & FALLOC_FL_KEEP_SIZE) { > + /* First compute the number of clusters to be allocated */ > + mm_bytes = offset + len - round_up(MSDOS_I(inode)->mmu_private, > + sbi->cluster_size); This

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-02 Thread OGAWA Hirofumi
Sorry for long delay. Namjae Jeon linkinj...@gmail.com writes: + if (mode FALLOC_FL_KEEP_SIZE) { + /* First compute the number of clusters to be allocated */ + mm_bytes = offset + len - round_up(MSDOS_I(inode)-mmu_private, +

[PATCH v3 2/6] fat: add fat_fallocate operation

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon Implement preallocation via the fallocate syscall on VFAT partitions. This patch is based on an earlier patch of the same name which had some issues detailed below and did not get accepted. Refer https://lkml.org/lkml/2007/12/22/130. a) The preallocated space was not

[PATCH v3 2/6] fat: add fat_fallocate operation

2013-12-24 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Implement preallocation via the fallocate syscall on VFAT partitions. This patch is based on an earlier patch of the same name which had some issues detailed below and did not get accepted. Refer https://lkml.org/lkml/2007/12/22/130. a) The preallocated