lkml.org 
[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/7] omfs: add directory routines
On Sun, Apr 13, 2008 at 10:11:44AM +0100, Alan Cox wrote:
>
> > +static int omfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
> > +{
> > + struct inode *dir = filp->f_dentry->d_inode;
> > + struct buffer_head *bh = NULL;
>
> > + if (filp->f_pos >> 32)
> > + goto success;
>
> f_pos may be 32bit in which case >> 32 does not have defined behaviour in
> C.

f_pos is always 64bit since 2.3.x



\
 
 \ /
  Last update: 2008-04-13 11:23    [W:0.060 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site