]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Add d_clear_d_op() compatibility
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 23 Jan 2013 00:14:43 +0000 (16:14 -0800)
committerDarik Horn <dajhorn@vanadac.com>
Thu, 24 Jan 2013 04:50:58 +0000 (22:50 -0600)
commit876ef85dc2c161844e999a99a4181f2d45853233
tree080245215edbccb57b9c8724bcb277faafe29d98
parent59337a252e6226e7d96fe15dbee1b5d9ee1ba14c
Add d_clear_d_op() compatibility

Added d_clear_d_op() helper function which clears some flags and the
registered dentry->d_op table.  This is required because d_set_d_op()
issues a warning when the dentry operations table is already set.
For the .zfs control directory to work properly we must be able to
override the default operations table and register custom .d_automount
and .d_revalidate callbacks.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #1230
include/linux/dcache_compat.h
module/zfs/zpl_ctldir.c