kernel-hacking-2024-linux-s.../fs/omfs
Al Viro d932805b3d omfs: merge unlink() and rmdir(), close leak in rename()
In case of directory-overwriting rename(), omfs forgot to mark the
victim doomed, so omfs_evict_inode() didn't free it.

We could fix that by calling omfs_rmdir() for directory victims
instead of doing omfs_unlink(), but it's easier to merge omfs_unlink()
and omfs_rmdir() instead.  Note that we have no hardlinks here.

It also makes the checks in omfs_rename() go away - they fold into
what omfs_remove() does when it runs into a directory.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
2011-03-05 16:24:01 -05:00
..
bitmap.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
dir.c omfs: merge unlink() and rmdir(), close leak in rename() 2011-03-05 16:24:01 -05:00
file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bcopeland/omfs 2010-08-10 11:47:36 -07:00
inode.c new helper: mount_bdev() 2010-10-29 04:16:13 -04:00
Kconfig
Makefile
omfs.h omfs: check bounds on block numbers before passing to sb_bread 2010-07-10 14:37:06 -04:00
omfs_fs.h omfs: sanity check cluster size 2010-07-10 14:38:11 -04:00