diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2004-03-17 21:23:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-17 21:23:43 -0800 |
| commit | eb3a6d154302fd726ca0b1233af696dafaa2c83d (patch) | |
| tree | 7f4b8c12869ae4c9e320a19752ddd761d19f8b17 /include | |
| parent | fde48def875ce9b16907d4c30b22dc56ca826d7e (diff) | |
[PATCH] hpfs: new/read/write_inode() cleanups
1) common initialization for all paths in hpfs_read_inode() taken into
a separate helper (hpfs_init_inode())
2) hpfs mkdir(),create(),mknod() and symlink() do not bother with
iget() anymore - they call new_inode(), do initializations and insert new
inode into icache. Handling of OOM failures cleaned up - if we can't
allocate in-core inode, bail instead of corrupting the filesystem.
Allocating in-core inode early also avoids one of the deadlocks here
(hpfs_write_inode() from memory pressure by kmem_cache_alloc() could
deadlock on attempt to lock our directory).
3) hpfs_write_inode() marks the inode dirty again in case if it
fails to iget() its parent directory. Again, OOM could trigger fs corruption
here.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
