]> git.baikalelectronics.ru Git - kernel.git/commit
fs: new cont helpers
authorNick Piggin <npiggin@suse.de>
Tue, 16 Oct 2007 08:25:07 +0000 (01:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:55 +0000 (09:42 -0700)
commit22c7b9e183706b07c6d54f170eea82e0b360c369
tree8a120a04c46f19229d1cf9b9c546f1818cf84c44
parent990d2a50548f94bce98b1fd4c929daefdb022aad
fs: new cont helpers

Rework the generic block "cont" routines to handle the new aops.  Supporting
cont_prepare_write would take quite a lot of code to support, so remove it
instead (and we later convert all filesystems to use it).

write_begin gets passed AOP_FLAG_CONT_EXPAND when called from
generic_cont_expand, so filesystems can avoid the old hacks they used.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/buffer.c
include/linux/buffer_head.h
include/linux/fs.h
mm/filemap.c