Commit 180e4d47 authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by David Sterba

btrfs: fix typos in comments

Correct a typo in the chunk_mutex name to make it grepable.

Since it is better to fix several typos at once, fixing the 2 more in the
same file.
Signed-off-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 6719afdc
...@@ -1484,10 +1484,10 @@ static int setup_security_options(struct btrfs_fs_info *fs_info, ...@@ -1484,10 +1484,10 @@ static int setup_security_options(struct btrfs_fs_info *fs_info,
memcpy(&fs_info->security_opts, sec_opts, sizeof(*sec_opts)); memcpy(&fs_info->security_opts, sec_opts, sizeof(*sec_opts));
} else { } else {
/* /*
* Since SELinux(the only one supports security_mnt_opts) does * Since SELinux (the only one supporting security_mnt_opts)
* NOT support changing context during remount/mount same sb, * does NOT support changing context during remount/mount of
* This must be the same or part of the same security options, * the same sb, this must be the same or part of the same
* just free it. * security options, just free it.
*/ */
security_free_mnt_opts(sec_opts); security_free_mnt_opts(sec_opts);
} }
...@@ -1665,8 +1665,8 @@ static inline void btrfs_remount_cleanup(struct btrfs_fs_info *fs_info, ...@@ -1665,8 +1665,8 @@ static inline void btrfs_remount_cleanup(struct btrfs_fs_info *fs_info,
unsigned long old_opts) unsigned long old_opts)
{ {
/* /*
* We need cleanup all defragable inodes if the autodefragment is * We need to cleanup all defragable inodes if the autodefragment is
* close or the fs is R/O. * close or the filesystem is read only.
*/ */
if (btrfs_raw_test_opt(old_opts, AUTO_DEFRAG) && if (btrfs_raw_test_opt(old_opts, AUTO_DEFRAG) &&
(!btrfs_raw_test_opt(fs_info->mount_opt, AUTO_DEFRAG) || (!btrfs_raw_test_opt(fs_info->mount_opt, AUTO_DEFRAG) ||
...@@ -2049,7 +2049,7 @@ static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf) ...@@ -2049,7 +2049,7 @@ static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf)
u64 thresh = 0; u64 thresh = 0;
/* /*
* holding chunk_muext to avoid allocating new chunks, holding * holding chunk_mutex to avoid allocating new chunks, holding
* device_list_mutex to avoid the device being removed * device_list_mutex to avoid the device being removed
*/ */
rcu_read_lock(); rcu_read_lock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment