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>
Thu, 6 Sep 2007 13:04:32 +0000 (09:04 -0400)
commitd4fe528fe442f2c1393825b4bde8a9f374eefdd6
treef0d8efd23b8281ed25391676ad92e46c0188a372
parent9be8a25f9a178659cc42b613e4b3ef3bf47c5652
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