diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/9p/vfs_inode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 13a8ed6088b8..de9a39590b70 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -794,6 +794,13 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
794 | goto clunk_olddir; | 794 | goto clunk_olddir; |
795 | } | 795 | } |
796 | 796 | ||
797 | if (v9fs_proto_dotl(v9ses)) { | ||
798 | retval = p9_client_rename(oldfid, newdirfid, | ||
799 | (char *) new_dentry->d_name.name); | ||
800 | if (retval != -ENOSYS) | ||
801 | goto clunk_newdir; | ||
802 | } | ||
803 | |||
797 | /* 9P can only handle file rename in the same directory */ | 804 | /* 9P can only handle file rename in the same directory */ |
798 | if (memcmp(&olddirfid->qid, &newdirfid->qid, sizeof(newdirfid->qid))) { | 805 | if (memcmp(&olddirfid->qid, &newdirfid->qid, sizeof(newdirfid->qid))) { |
799 | P9_DPRINTK(P9_DEBUG_ERROR, | 806 | P9_DPRINTK(P9_DEBUG_ERROR, |