[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-xfs
Subject: Re: [PATCH] xfs: revert to double-buffering readdir
From: Chris Wedgwood <cw () f00f ! org>
Date: 2007-11-30 23:04:35
Message-ID: 20071130230435.GA12626 () puku ! stupidest ! org
[Download RAW message or body]
On Fri, Nov 30, 2007 at 04:36:25PM -0600, Stephen Lord wrote:
> Looks like the readdir is in the bowels of the btree code when
> filldir gets called here, there are probably locks on several
> buffers in the btree at this point. This will only show up for large
> directories I bet.
I see it for fairly small directories. Larger than what you can stuff
into an inode but less than a block (I'm not checking but fairly sure
that's the case).
> Just rambling, not a single line of code was consulted in writing
> this message.
Can you explain why the offset is capped and treated in an 'odd way'
at all?
+ curr_offset = filp->f_pos;
+ if (curr_offset == 0x7fffffff)
+ offset = 0xffffffff;
+ else
+ offset = filp->f_pos;
and later the offset to filldir is masked. Is that some restriction
in filldir?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic