linux/fs/ext3
Al Viro 0ce8c0109f ext[34]: avoid i_nlink warnings triggered by drop_nlink/inc_nlink kludge in symlink()
Both ext3 and ext4 put the half-created symlink inode into the orphan list
for a while (see the comment in ext[34]_symlink() for gory details).  Then,
if everything went fine, they pull it out of the orphan list and bump the
link count back to 1.  The thing is, inc_nlink() is going to complain about
seeing somebody changing i_nlink from 0 to 1.  With a good reason, since
normally something like that is a bug.  Explicit set_nlink(inode, 1) does
the same thing as inc_nlink() here, but it does *not* complain - exactly
because it should be usable in strange situations like this one.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2012-01-08 20:19:30 -05:00
..
acl.c
acl.h
balloc.c ext3: Allow quota file use root reservation 2011-10-31 23:43:59 +01:00
bitmap.c
dir.c
ext3_jbd.c
file.c
fsync.c ext3: Remove i_mutex from ext3_sync_file() 2011-08-17 11:41:20 +02:00
hash.c
ialloc.c ext3: propagate umode_t 2012-01-03 22:54:58 -05:00
inode.c treewide: Fix typos in various parts of the kernel, and fix some comments. 2011-12-02 14:57:31 +01:00
ioctl.c vfs: mnt_drop_write_file() 2012-01-03 22:52:40 -05:00
Kconfig
Makefile
namei.c ext[34]: avoid i_nlink warnings triggered by drop_nlink/inc_nlink kludge in symlink() 2012-01-08 20:19:30 -05:00
namei.h
resize.c
super.c vfs: switch ->show_options() to struct dentry * 2012-01-06 23:19:54 -05:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h