diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-01-17 21:07:24 (GMT) |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-04-26 22:01:58 (GMT) |
commit | abf8b1569415bb4a8915a4884943ecd39c510957 (patch) | |
tree | d2d1e9fb20fbe1fa9126fe843cab2a283c7a2c6c /fs/ocfs2/mmap.c | |
parent | 3a0782d09c07aa3ec767ba6089cd15cfbfbfc508 (diff) | |
download | linux-fsl-qoriq-abf8b1569415bb4a8915a4884943ecd39c510957.tar.xz |
ocfs2: abstract out allocation locking
Right now, file allocation for ocfs2 is done within ocfs2_extend_file(),
which is either called from ->setattr() (for an i_size change), or at the
top of ocfs2_file_aio_write().
Inodes on file systems with sparse file support will want to do their
allocation during the actual write call.
In either case the cluster locking decisions are the same. We abstract out
that code into a new function, ocfs2_lock_allocators() which will be used by
a later patch to enable writing to sparse files.
This also provides a nice cleanup of ocfs2_extend_allocation().
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/mmap.c')
0 files changed, 0 insertions, 0 deletions