Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1668388

Re: [PATCH] ufs: Fix build errors on 32 bit machines

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] ufs: Fix build errors on 32 bit machines
Date 2017-06-17 21:00 +0200
Message-ID <tTr6V-2I9-7@gated-at.bofh.it> (permalink)
References <tTpRv-1Ui-9@gated-at.bofh.it> <tTqDT-2ud-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jun 17, 2017 at 07:23:28PM +0100, Al Viro wrote:
> On Sat, Jun 17, 2017 at 10:35:13AM -0700, Guenter Roeck wrote:
> > Various 32 builds fail with error messages such as
> > 
> > ERROR: "__udivdi3" [fs/ufs/ufs.ko] undefined!
> > 
> > due to a variable type change from 32 bit to 64 bit.
> 
> Actually, that's not the only problem in that place.  The breakage
> came in 2.4.14.7; the critical part was this:
[snip]

Some background: there are two possible allocation policies for the
bad case of tail unpacking.  If a small (less than 192K, on typical
ufs1) file has the last block packed along with those of other files
and we can't just expand that tail in place, we need to find a place
for longer tail somewhere and copy the old data over there.

First policy: try and put it into a block already containing tail(s).
Kinder on space, higher odds of having to do relocation the next time
that tail needs to grow.  That's what OPTSPACE is.

Second policy: pick a free block and put the expanded tail there.
Better chance of being able to expand in place when/if the tail needs
to grow again, harsher on space.  That's OPTTIME.

The choice between those is controlled by the amount of space left
in partially filled blocks.  If it's high, we need to go for OPTSPACE,
if it's low - OPTTIME.  Cutoff values depend upon the amount of
space reserved for root; for 5% (default) it's "go for OPTSPACE when
more than 3% of total space are taken by free space in partially
filled blocks, go for OPTTIME when fragmentation is less than 2.5%,
stay with the previous state when it's between 2.5% and 3%".

(Christoph's?) typo in 2.4.14.7 has broken the switch from OPTTIME to
OPTSPACE; once in OPTTIME it's stuck in OPTTIME.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] ufs: Fix build errors on 32 bit machines Guenter Roeck <linux@roeck-us.net> - 2017-06-17 19:40 +0200
  Re: [PATCH] ufs: Fix build errors on 32 bit machines Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-17 20:30 +0200
    Re: [PATCH] ufs: Fix build errors on 32 bit machines Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-17 21:00 +0200
    Re: [PATCH] ufs: Fix build errors on 32 bit machines Guenter Roeck <linux@roeck-us.net> - 2017-06-18 11:40 +0200

csiph-web