This will allow generating fsnotify delete events after the fsnotify_nameremove() hook is removed from d_delete(). Cc: Doug Ledford <dledford@xxxxxxxxxx> Cc: Jason Gunthorpe <jgg@xxxxxxxxxxxx> Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx> --- drivers/infiniband/hw/qib/qib_fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index ceb42d948412..795938a2488b 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c @@ -491,8 +491,7 @@ static int remove_device_files(struct super_block *sb, } remove_file(dir, "flash"); inode_unlock(d_inode(dir)); - ret = simple_rmdir(d_inode(root), dir); - d_delete(dir); + ret = simple_remove(d_inode(root), dir); dput(dir); bail: -- 2.17.1