]> bbs.cooldavid.org Git - net-next-2.6.git/commit
smbfs: use dget_parent
authorChristoph Hellwig <hch@infradead.org>
Sun, 10 Oct 2010 09:36:29 +0000 (05:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Oct 2010 01:26:14 +0000 (21:26 -0400)
commitbe9eee2e8b87e335531a3ae13abb8d26e834c438
treec9590e1b5b246cdbd1e8cd5bc2d314a86b11f814
parent0461ee2616252f1f6cec628990fa913a4282dcf7
smbfs: use dget_parent

Use dget_parent instead of opencoding it.  This simplifies the code, but
more importanly prepares for the more complicated locking for a parent
dget in the dcache scale patch series.

Note that the d_time assignment in smb_renew_times moves out of d_lock,
but it's a single atomic 32-bit value, and that's what other sites
setting it do already.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/smbfs/dir.c
fs/smbfs/proc.c