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>
Fri, 22 Nov 2013 23:53:54 +0000 (18:53 -0500)
commit623a358fb5fc7cbe31958a5b2ecb5fed4eaef24d
treecdb7794bbd6a8a041e07703c64d18e0e194178f4
parent445bbabdb71e2130875f2d0722ca1747e31f479e
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