mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user