https://github.com/torvalds/linux
Revision 45bce8f3e3436bbe2e03dd2b076abdce79ffabb7 authored by Linus Torvalds on 29 November 2012, 18:21:43 UTC, committed by Linus Torvalds on 29 November 2012, 18:47:20 UTC
This makes the buffer size handling be a per-page thing, which allows us
to not have to worry about locking too much when changing the buffer
size.  If a page doesn't have buffers, we still need to read the block
size from the inode, but we can do that with ACCESS_ONCE(), so that even
if the size is changing, we get a consistent value.

This doesn't convert all functions - many of the buffer functions are
used purely by filesystems, which in turn results in the buffer size
being fixed at mount-time.  So they don't have the same consistency
issues that the raw device access can have.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9489e9d
History
Tip revision: 45bce8f3e3436bbe2e03dd2b076abdce79ffabb7 authored by Linus Torvalds on 29 November 2012, 18:21:43 UTC
fs/buffer.c: make block-size be per-page and protected by the page lock
Tip revision: 45bce8f
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 224.8 KB
Makefile -rw-r--r-- 46.6 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top