summaryrefslogtreecommitdiff
path: root/fs/cachefiles
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2013-05-10 22:50:25 +0400
committerDavid Howells <dhowells@redhat.com>2013-06-19 17:16:47 +0400
commit6bd5e82b099c3d633905098b3c0af808ced73d85 (patch)
treeeacf3cbadd5fe5037b35f5b260cba7649a3d2ba8 /fs/cachefiles
parentee8be57bc331f00d520c4c8a78ffa9590ed41c2c (diff)
downloadlinux-6bd5e82b099c3d633905098b3c0af808ced73d85.tar.xz
CacheFiles: name i_mutex lock class explicitly
Just some cleanup. (And note the caller of this function may, for example, call vfs_unlink on a child, so the "1" (I_MUTEX_PARENT) really was what was intended here.) Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com> Tested-By: Milosz Tanski <milosz@adfin.com> Acked-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cachefiles')
-rw-r--r--fs/cachefiles/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
index 8c01c5fcdf75..07cbd447861e 100644
--- a/fs/cachefiles/namei.c
+++ b/fs/cachefiles/namei.c
@@ -836,7 +836,7 @@ static struct dentry *cachefiles_check_active(struct cachefiles_cache *cache,
// dir->d_name.len, dir->d_name.len, dir->d_name.name, filename);
/* look up the victim */
- mutex_lock_nested(&dir->d_inode->i_mutex, 1);
+ mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
start = jiffies;
victim = lookup_one_len(filename, dir, strlen(filename));