diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-01-29 05:05:05 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 12:59:01 -0500 |
commit | 8c6a3ee6dbd564d05019d396ecb5dc5b35cbc273 (patch) | |
tree | f3898d778237cfbe54c262adf72fb8fa0a35e84c /fs/btrfs/ctree.h | |
parent | 55e301fd57a6239ec14b91a1cf2e70b3dd135194 (diff) |
Btrfs: add a comment for fs_info->max_inline
Though ->max_inline is a 64bit variant, and may be accessed by
multi-task, but it is just suggestive number, so we needn't add
anything to protect fs_info->max_inline, just add a comment to
explain wny we don't use a lock to protect it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 69321013683c..169baa817d96 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1297,6 +1297,12 @@ struct btrfs_fs_info { | |||
1297 | u64 last_trans_log_full_commit; | 1297 | u64 last_trans_log_full_commit; |
1298 | unsigned long mount_opt; | 1298 | unsigned long mount_opt; |
1299 | unsigned long compress_type:4; | 1299 | unsigned long compress_type:4; |
1300 | /* | ||
1301 | * It is a suggestive number, the read side is safe even it gets a | ||
1302 | * wrong number because we will write out the data into a regular | ||
1303 | * extent. The write side(mount/remount) is under ->s_umount lock, | ||
1304 | * so it is also safe. | ||
1305 | */ | ||
1300 | u64 max_inline; | 1306 | u64 max_inline; |
1301 | u64 alloc_start; | 1307 | u64 alloc_start; |
1302 | struct btrfs_transaction *running_transaction; | 1308 | struct btrfs_transaction *running_transaction; |