diff options
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 71bfe3a6a444..507081059d97 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1060,14 +1060,6 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, | |||
1060 | last_index = (pos + count) >> PAGE_CACHE_SHIFT; | 1060 | last_index = (pos + count) >> PAGE_CACHE_SHIFT; |
1061 | 1061 | ||
1062 | /* | 1062 | /* |
1063 | * if this is a nodatasum mount, force summing off for the inode | ||
1064 | * all the time. That way a later mount with summing on won't | ||
1065 | * get confused | ||
1066 | */ | ||
1067 | if (btrfs_test_opt(root, NODATASUM)) | ||
1068 | btrfs_set_flag(inode, NODATASUM); | ||
1069 | |||
1070 | /* | ||
1071 | * there are lots of better ways to do this, but this code | 1063 | * there are lots of better ways to do this, but this code |
1072 | * makes sure the first and last page in the file range are | 1064 | * makes sure the first and last page in the file range are |
1073 | * up to date and ready for cow | 1065 | * up to date and ready for cow |