linux/fs/ocfs2
Mark Fasheh 415cb80037 ocfs2: Allow smaller allocations during large writes
The ocfs2 write code loops through a page much like the block code, except
that ocfs2 allocation units can be any size, including larger than page
size. Typically it's equal to or larger than page size - most kernels run 4k
pages, the minimum ocfs2 allocation (cluster) size.

Some changes introduced during 2.6.23 changed the way writes to pages are
handled, and inadvertantly broke support for > 4k page size. Instead of just
writing one cluster at a time, we now handle the whole page in one pass.

This means that multiple (small) seperate allocations might happen in the
same pass. The allocation code howver typically optimizes by getting the
maximum which was reserved. This triggered a BUG_ON in the extend code where
it'd ask for a single bit (for one part of a > 4k page) and get back more
than it asked for.

Fix this by providing a variant of the high level allocation function which
allows the caller to specify a maximum. The traditional function remains and
just calls the new one with a maximum determined from the initial
reservation.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2007-09-20 15:06:09 -07:00
..
cluster ocfs2: Retry sendpage() if it returns EAGAIN 2007-08-09 17:27:38 -07:00
dlm mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
Makefile
alloc.c ocfs2: Fix calculation of i_blocks during truncate 2007-09-11 11:39:46 -07:00
alloc.h ocfs2: support for removing file regions 2007-07-10 17:32:08 -07:00
aops.c [PATCH] ocfs2: Fix a wrong cluster calculation. 2007-09-11 11:39:05 -07:00
aops.h ocfs2: shared writeable mmap 2007-07-10 17:31:51 -07:00
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c ocfs2: Support creation of unwritten extents 2007-07-10 17:32:04 -07:00
dir.h
dlmglue.c [PATCH] ocfs2: use list_for_each_entry where benefical 2007-07-10 17:19:49 -07:00
dlmglue.h
endian.h ocfs2: btree changes for unwritten extents 2007-07-10 17:32:00 -07:00
export.c
export.h knfsd: exportfs: add exportfs.h header 2007-07-17 10:23:06 -07:00
extent_map.c ocfs2: btree changes for unwritten extents 2007-07-10 17:32:00 -07:00
extent_map.h
file.c ocfs2: Allow smaller allocations during large writes 2007-09-20 15:06:09 -07:00
file.h ocfs2: Support xfs style space reservation ioctls 2007-07-10 17:32:09 -07:00
heartbeat.c usermodehelper: Tidy up waiting 2007-07-18 08:47:40 -07:00
heartbeat.h
inode.c
inode.h
ioctl.c Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check 2007-07-17 12:00:03 -07:00
ioctl.h
journal.c [PATCH] ocfs2: use list_for_each_entry where benefical 2007-07-10 17:19:49 -07:00
journal.h ocfs2: support for removing file regions 2007-07-10 17:32:08 -07:00
localalloc.c ocfs2: Allow smaller allocations during large writes 2007-09-20 15:06:09 -07:00
localalloc.h ocfs2: Allow smaller allocations during large writes 2007-09-20 15:06:09 -07:00
mmap.c fix some conversion overflows 2007-07-20 08:44:19 -07:00
mmap.h
namei.c ocfs2: Fix rename/extend race 2007-08-09 17:27:10 -07:00
namei.h
ocfs1_fs_compat.h
ocfs2.h ocfs2: Fix some casting errors related to file writes 2007-08-09 17:25:27 -07:00
ocfs2_fs.h ocfs2: Support xfs style space reservation ioctls 2007-07-10 17:32:09 -07:00
ocfs2_lockid.h
slot_map.c ocfs2: Add "preferred slot" mount option 2007-07-10 17:19:54 -07:00
slot_map.h
suballoc.c ocfs2: Allow smaller allocations during large writes 2007-09-20 15:06:09 -07:00
suballoc.h ocfs2: Allow smaller allocations during large writes 2007-09-20 15:06:09 -07:00
super.c [PATCH] ocfs2: fix mount option parsing 2007-09-11 11:38:48 -07:00
super.h ocfs2: use s_maxbytes directly in ocfs2_change_file_space() 2007-08-09 17:25:07 -07:00
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
uptodate.h
ver.c
ver.h
vote.c
vote.h