]> 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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 24 Jan 2013 00:33:29 +0000 (16:33 -0800)
commitbf01b5e6161b4aa94c69792e50de4102a033be09
tree22e09aec7a7f4a5bdee391b4e6091334fa4116e9
parent1305d33a4b0f8b10cea61989330cc5d059cfa7cb
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