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>
Sun, 23 Mar 2008 03:48:29 +0000 (23:48 -0400)
commitd9269729a8d822785a653c9c3b0a5a22b18ba90c
tree1ddd66821279ff57c2ed36ca5de8d5e1c2c8e72e
parentae85cfbc4fcac2b02b392b4d22119d3fde323cb1
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