Skip to content
Commit 825f1481 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 74d3487f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment