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>
Tue, 31 Jan 2012 04:55:08 +0000 (23:55 -0500)
commit8d169471dd3788a5a68367a7584fd7a7792a4c1a
treecaca67b8ef04c8fb8164701ef8b2ee54be7760db
parentd100d9661c525380af6e207e9d794d5fd1ee13f2
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