Re: [PATCH v6 3/4] fat: permit to return phy block number by fibmap in fallocated region

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

 



Namjae Jeon <namjae.jeon@xxxxxxxxxxx> writes:

> +static int fat_get_block_bmap(struct inode *inode, sector_t iblock,
> +		struct buffer_head *bh_result, int create)
> +{
> +	struct super_block *sb = inode->i_sb;
> +	unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits;
> +	int err;
> +	sector_t bmap, last_block;
> +	unsigned long mapped_blocks;
> +
> +	BUG_ON(create != 0);
> +
> +	last_block = inode->i_blocks;
> +
> +	if (iblock >= last_block)
> +		return 0;

This one also different unit.
-- 
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