File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -413,8 +413,8 @@ static ssize_t simplefs_write(struct file *file,
413
413
size_t bytes_to_write =
414
414
min_t (size_t , len , SIMPLEFS_BLOCK_SIZE - pos % SIMPLEFS_BLOCK_SIZE );
415
415
416
- if (copy_from_user (bh_data -> b_data + pos % SIMPLEFS_BLOCK_SIZE , buf + bytes_write ,
417
- bytes_to_write )) {
416
+ if (copy_from_user (bh_data -> b_data + pos % SIMPLEFS_BLOCK_SIZE ,
417
+ buf + bytes_write , bytes_to_write )) {
418
418
brelse (bh_data );
419
419
bytes_write = - EFAULT ;
420
420
break ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ _Static_assert(sizeof(struct superblock) == SIMPLEFS_BLOCK_SIZE);
26
26
*
27
27
* Return the result of n / d, rounded up to the nearest integer.
28
28
*/
29
- #define DIV_ROUND_UP (n , d ) (((n) + (d) -1) / (d))
29
+ #define DIV_ROUND_UP (n , d ) (((n) + (d) - 1) / (d))
30
30
31
31
static struct superblock * write_superblock (int fd , struct stat * fstats )
32
32
{
You can’t perform that action at this time.
0 commit comments