diff options
author | Josef Bacik <josef@redhat.com> | 2010-11-19 21:36:10 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-11-22 04:26:09 +0100 |
commit | 495e86779f4f319828bc10dfc0c9ac2161868077 (patch) | |
tree | 62729f2b65c9565fadb551bd8d343d6c57d7cb85 /fs/btrfs/inode.c | |
parent | Btrfs: use dget_parent where we can UPDATED (diff) | |
download | linux-495e86779f4f319828bc10dfc0c9ac2161868077.tar.xz linux-495e86779f4f319828bc10dfc0c9ac2161868077.zip |
Btrfs: hold i_mutex when calling btrfs_log_dentry_safe
Since we walk up the path logging all of the parts of the inode's path, we need
to hold i_mutex to make sure that the inode is not renamed while we're logging
everything. btrfs_log_dentry_safe does dget_parent and all of that jazz, but we
may get unexpected results if the rename changes the inode's location while
we're higher up the path logging those dentries, so do this for safety reasons.
Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions