diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-10-10 09:36:30 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-26 01:26:14 (GMT) |
commit | 4d4eb36679adbdd75495e1bbfe7ac40e4ae41dea (patch) | |
tree | f5cef4647a54e8a65ab518db8edeeea6b7a8652d /kernel/audit_watch.c | |
parent | be9eee2e8b87e335531a3ae13abb8d26e834c438 (diff) | |
download | linux-fsl-qoriq-4d4eb36679adbdd75495e1bbfe7ac40e4ae41dea.tar.xz |
fsnotify: 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.
It means we do grab a reference to the parent now if need to be watched,
but not with the specified mask. If this turns out to be a problem
we'll have to revisit it, but for now let's keep as much as possible
dcache internals inside dcache.[ch].
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit_watch.c')
0 files changed, 0 insertions, 0 deletions