aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNick Piggin <npiggin@kernel.dk>2011-01-07 01:49:26 -0500
committerNick Piggin <npiggin@kernel.dk>2011-01-07 01:50:19 -0500
commitfb2d5b86aff355a27ebfc132d3c99f4a940cc3fe (patch)
tree7fed12adf54473131e8b86c0c302c443b1d6a846 /drivers
parent2bc334dcc7c77be3700dd443d92a78603f76976b (diff)
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 dbb98658148b..dbd2e1df3ba9 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,
145 goto end_advance; 145 goto end_advance;
146 } else { 146 } else {
147 hashed = 1; 147 hashed = 1;
148 memcpy((char *) newdent->d_name.name, qname->name, 148 /* dir i_mutex is locked because we're in readdir */
149 newdent->d_name.len); 149 dentry_update_name_case(newdent, qname);
150 } 150 }
151 151
152 if (!newdent->d_inode) { 152 if (!newdent->d_inode) {