mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
Btrfs: fix formatting in file.c
Sorry, but these were bugging me. Just cleanup some of the formatting in file.c. Signed-off-by: Josef Bacik <josef@redhat.com>
This commit is contained in:
parent
521cb40b0c
commit
9f570b8d48
@ -88,9 +88,8 @@ static noinline int btrfs_copy_from_user(loff_t pos, int num_pages,
|
|||||||
total_copied += copied;
|
total_copied += copied;
|
||||||
|
|
||||||
/* Return to btrfs_file_aio_write to fault page */
|
/* Return to btrfs_file_aio_write to fault page */
|
||||||
if (unlikely(copied == 0)) {
|
if (unlikely(copied == 0))
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
if (unlikely(copied < PAGE_CACHE_SIZE - offset)) {
|
if (unlikely(copied < PAGE_CACHE_SIZE - offset)) {
|
||||||
offset += copied;
|
offset += copied;
|
||||||
@ -162,13 +161,14 @@ static noinline int dirty_and_release_pages(struct btrfs_trans_handle *trans,
|
|||||||
ClearPageChecked(p);
|
ClearPageChecked(p);
|
||||||
set_page_dirty(p);
|
set_page_dirty(p);
|
||||||
}
|
}
|
||||||
if (end_pos > isize) {
|
|
||||||
|
/*
|
||||||
|
* we've only changed i_size in ram, and we haven't updated
|
||||||
|
* the disk i_size. There is no need to log the inode
|
||||||
|
* at this time.
|
||||||
|
*/
|
||||||
|
if (end_pos > isize)
|
||||||
i_size_write(inode, end_pos);
|
i_size_write(inode, end_pos);
|
||||||
/* we've only changed i_size in ram, and we haven't updated
|
|
||||||
* the disk i_size. There is no need to log the inode
|
|
||||||
* at this time.
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user