Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68785793 authored by Al Viro's avatar Al Viro
Browse files

ufs: ufs_trunc_...() has exclusion with everything that might cause allocations



	Currently - on lock_ufs(), eventually - on per-inode mutex.
lock_ufs() used to be mere BKL, which is much weaker, so it needed
those rechecks.  BKL doesn't provide any exclusion once we lose CPU;
its blind replacement, OTOH, _does_.  Making that per-filesystem was
an atrocity, but at least we can simplify life here.  And yes, we
certainly need to make that sucker per-inode - these days inode.c and
truncate.c uses are needed only to protect the block pointers.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 6a799d35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment