Unionfs: Simplify unionfs_get_nlinks
authorJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
Mon, 3 Sep 2007 21:22:45 +0000 (17:22 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 20 May 2009 20:59:15 +0000 (16:59 -0400)
commitd3313b2369b63786b3f568f7cecf86defb1131be
tree79b6e72ddda0abde53eabb13f9ff7d49c78666e6
parent574c717a51e07c897242346a1bc9217d0262ef04
Unionfs: Simplify unionfs_get_nlinks

Since we set the right value for d_type in readdir, there's really no point
in having to calculate the number of directory links. Some on-disk
filesystems don't even store the number of links for directories.

Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/subr.c