diff options
author | Jan Kara <jack@suse.cz> | 2009-07-16 12:02:25 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-09-14 13:13:00 -0400 |
commit | 81056dd04465902461b627169c4b4487a11acba1 (patch) | |
tree | 902b49848f8d2033c24ad78ac5d391bf092091ef /arch/powerpc | |
parent | 7c6e3d1aaeb3b25b49510d193000c27037004acb (diff) |
udf: Perform preallocation only for regular files
So far we preallocated blocks also for directories but that brings a
problem, when to get rid of preallocated blocks we don't need. So far
we removed them in udf_clear_inode() which has a disadvantage that
1) blocks are unavailable long after writing to a directory finished
and thus one can get out of space unnecessarily early
2) releasing blocks from udf_clear_inode is problematic because VFS
does not expect us to redirty inode there and it also slows down
memory reclaim.
So preallocate blocks only for regular files where we can drop preallocation
in udf_release_file.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions