]> git.neil.brown.name Git - history.git/commit
[PATCH] Shift BKL into ->statfs()
authorPaul Menage <pmenage@ensim.com>
Fri, 5 Jul 2002 04:11:23 +0000 (21:11 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 5 Jul 2002 04:11:23 +0000 (21:11 -0700)
commit0aa838c690aec25eea712e2602957f66ad02dbb8
treea501b659860405c35fe54ea5b04a0a08eeb94c3d
parent2ffe5f2f17d6698d1b0e78c43a4b9eb91426340d
[PATCH] Shift BKL into ->statfs()

This patch removes BKL protection from the invocation of the
super_operations ->statfs() method, and shifts it into the filesystems
where necessary. Any out-of-tree filesystems may need to take the BKL in
their statfs() methods if they were relying on it for synchronisation.

All ->statfs() implementations have been modified to take the BKL,
except for those that don't reference any external mutable data or that
already have their own locking.

Additionally, capifs is changed to use simple_statfs rather than its
own home-grown version.

The BKL change has been flagged at the end of
Documentation/filesystems/porting, along with the recent change to
->permission BKL usage.
14 files changed:
Documentation/filesystems/Locking
Documentation/filesystems/porting
drivers/isdn/capi/capifs.c
fs/coda/inode.c
fs/ext3/super.c
fs/freevxfs/vxfs_super.c
fs/hpfs/super.c
fs/jffs/inode-v23.c
fs/nfs/inode.c
fs/open.c
fs/qnx4/inode.c
fs/smbfs/inode.c
fs/udf/super.c
fs/ufs/super.c