forked from Minki/linux
be5b82dbfe
Right now ext2_get_page() (and its analogues in a bunch of other filesystems) relies upon the directory being locked - the way it sets and tests Checked and Error bits would be racy without that. Switch to a slightly different scheme, _not_ setting Checked in case of failure. That way the logics becomes if Checked => OK else if Error => fail else if !validate => fail else => OK with validation setting Checked or Error on success and failure resp. and returning which one had happened. Equivalent to the current logics, but unlike the current logics not sensitive to the order of set_bit, test_bit getting reordered by CPU, etc. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> |
||
---|---|---|
.. | ||
balloc.c | ||
cylinder.c | ||
dir.c | ||
file.c | ||
ialloc.c | ||
inode.c | ||
Kconfig | ||
Makefile | ||
namei.c | ||
super.c | ||
swab.h | ||
ufs_fs.h | ||
ufs.h | ||
util.c | ||
util.h |