diff mbox

[1/2] fs: export d_exchange for the fs with FS_RENAME_DOSE_D_MOVE

Message ID 1441271532-10386-1-git-send-email-xuw2015@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

xuw2015@gmail.com Sept. 3, 2015, 9:12 a.m. UTC
From: Geroge Wang <xuw2015@gmail.com>

d_move is exported for specified file systems, we should export
d_exchange also.

Signed-off-by: George Wang <xuw2015@gmail.com>
---
 fs/dcache.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/fs/dcache.c b/fs/dcache.c
index 9b5fe50..a6de9b0 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2694,6 +2694,7 @@  void d_exchange(struct dentry *dentry1, struct dentry *dentry2)
 
 	write_sequnlock(&rename_lock);
 }
+EXPORT_SYMBOL(d_exchange);
 
 /**
  * d_ancestor - search for an ancestor