From mboxrd@z Thu Jan 1 00:00:00 1970 From: OGAWA Hirofumi Subject: Re: [PATCH v6 3/4] fat: permit to return phy block number by fibmap in fallocated region Date: Fri, 24 Oct 2014 00:31:53 +0900 Message-ID: <87fvee9506.fsf@devron.myhome.or.jp> References: <006e01cfe9fd$3ef0cd40$bcd267c0$@samsung.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Andrew Morton , linux-fsdevel@vger.kernel.org To: Namjae Jeon Return-path: Received: from mail.parknet.co.jp ([210.171.160.6]:44957 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbaJWPb6 (ORCPT ); Thu, 23 Oct 2014 11:31:58 -0400 In-Reply-To: <006e01cfe9fd$3ef0cd40$bcd267c0$@samsung.com> (Namjae Jeon's message of "Fri, 17 Oct 2014 20:26:50 +0900") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Namjae Jeon 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