diff options
Diffstat (limited to 'fs/cachefiles')
-rw-r--r-- | fs/cachefiles/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c index 4ce818ae39ea..3df86952ca64 100644 --- a/fs/cachefiles/namei.c +++ b/fs/cachefiles/namei.c | |||
@@ -254,7 +254,7 @@ int cachefiles_delete_object(struct cachefiles_cache *cache, | |||
254 | 254 | ||
255 | dir = dget_parent(object->dentry); | 255 | dir = dget_parent(object->dentry); |
256 | 256 | ||
257 | mutex_lock(&dir->d_inode->i_mutex); | 257 | mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); |
258 | ret = cachefiles_bury_object(cache, dir, object->dentry); | 258 | ret = cachefiles_bury_object(cache, dir, object->dentry); |
259 | 259 | ||
260 | dput(dir); | 260 | dput(dir); |
@@ -307,7 +307,7 @@ lookup_again: | |||
307 | /* search the current directory for the element name */ | 307 | /* search the current directory for the element name */ |
308 | _debug("lookup '%s'", name); | 308 | _debug("lookup '%s'", name); |
309 | 309 | ||
310 | mutex_lock(&dir->d_inode->i_mutex); | 310 | mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); |
311 | 311 | ||
312 | start = jiffies; | 312 | start = jiffies; |
313 | next = lookup_one_len(name, dir, nlen); | 313 | next = lookup_one_len(name, dir, nlen); |