]> git.baikalelectronics.ru Git - kernel.git/commit
libfs: allow error return from simple attributes
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Feb 2008 12:20:26 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:34 +0000 (09:22 -0800)
commitbee2950fa47f788defdfd6c72ce2b6cbbb777046
treec13773b744cf12b1e30ec9336a4acaf21e46c6d9
parent3f24f7ffe371a556830153903225f181ec6506aa
libfs: allow error return from simple attributes

Sometimes simple attributes might need to return an error, e.g. for
acquiring a mutex interruptibly.  In fact we have that situation in
spufs already which is the original user of the simple attributes.  This
patch merged the temporarily forked attributes in spufs back into the
main ones and allows to return errors.

[akpm@linux-foundation.org: build fix]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: <stefano.brivio@polimi.it>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg KH <greg@kroah.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/avr32/kernel/ocd.c
arch/powerpc/platforms/cell/spufs/file.c
fs/debugfs/file.c
fs/libfs.c
include/linux/fs.h
lib/fault-inject.c
virt/kvm/kvm_main.c