]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Don't use ext4_dec_count() if not needed
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 Feb 2008 20:00:38 +0000 (15:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 15 Feb 2008 20:00:38 +0000 (15:00 -0500)
commit4c67ea9995ea6baaaea4465c0cd37b4ce72a3407
tree574243b782595a47fb34f348e6f6a5f3b396678e
parent951002729f53d9445ea1a523d65611f01931b84d
ext4: Don't use ext4_dec_count() if not needed

The ext4_dec_count() function is only needed when dropping the i_nlink
count on inodes which are (or which could be) directories.  If we
*know* that the inode in question can't possibly be a directory, use
drop_nlink or clear_nlink() if we know i_nlink is 1.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c