lkml.org 
[lkml]   [2008]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/8] omfs: add file routines
On Mon, Apr 21, 2008 at 05:29:12PM +0200, Miklos Szeredi wrote:
> This instead?
>
> if (offset > 0) {
> ret = 0;
> map_bh(bh_result, inode->i_sb, offset);
> if (remain > max_blocks)
> remain = max_blocks;
> bh_result->b_size = (remain << inode->i_blkbits);
> goto out_brelse;
> }

Much cleaner, thanks!

--
Bob Copeland %% www.bobcopeland.com



\
 
 \ /
  Last update: 2008-04-22 03:57    [W:0.105 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site