Skip to content

Commit

Permalink
CacheFiles: name i_mutex lock class explicitly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Bruce Fields authored and David Howells committed Jun 19, 2013
1 parent ee8be57 commit 6bd5e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cachefiles/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6bd5e82

Please sign in to comment.