nfsd: close cached files prior to a REMOVE or RENAME that would replace target
[linux-2.6-microblaze.git] / fs / nfs / export.c
index b9ba306..5428713 100644 (file)
@@ -171,5 +171,5 @@ const struct export_operations nfs_export_ops = {
        .encode_fh = nfs_encode_fh,
        .fh_to_dentry = nfs_fh_to_dentry,
        .get_parent = nfs_get_parent,
-       .flags = EXPORT_OP_NOWCC|EXPORT_OP_NOSUBTREECHK,
+       .flags = EXPORT_OP_NOWCC|EXPORT_OP_NOSUBTREECHK|EXPORT_OP_CLOSE_BEFORE_UNLINK,
 };