summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNick Piggin <npiggin@kernel.dk>2011-01-07 17:49:26 +1100
committerNick Piggin <npiggin@kernel.dk>2011-01-07 17:50:19 +1100
commitfb2d5b86aff355a27ebfc132d3c99f4a940cc3fe (patch)
tree7fed12adf54473131e8b86c0c302c443b1d6a846 /drivers
parent2bc334dcc7c77be3700dd443d92a78603f76976b (diff)
downloadlinux-3.10-fb2d5b86aff355a27ebfc132d3c99f4a940cc3fe.tar.gz
linux-3.10-fb2d5b86aff355a27ebfc132d3c99f4a940cc3fe.tar.bz2
linux-3.10-fb2d5b86aff355a27ebfc132d3c99f4a940cc3fe.zip
fs: name case update method
smpfs and ncpfs want to update a live dentry name in-place. Rather than have them open code the locking, provide a documented dcache API. Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/smbfs/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/smbfs/cache.c b/drivers/staging/smbfs/cache.c
index dbb98658148..dbd2e1df3ba 100644
--- a/drivers/staging/smbfs/cache.c
+++ b/drivers/staging/smbfs/cache.c
@@ -145,8 +145,8 @@ smb_fill_cache(struct file *filp, void *dirent, filldir_t filldir,
goto end_advance;
} else {
hashed = 1;
- memcpy((char *) newdent->d_name.name, qname->name,
- newdent->d_name.len);
+ /* dir i_mutex is locked because we're in readdir */
+ dentry_update_name_case(newdent, qname);
}
if (!newdent->d_inode) {