* [PATCH] fix spacing in btrfs/inode.c
@ 2015-02-12 2:17 Kevin Mulvey
2015-02-12 9:43 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Mulvey @ 2015-02-12 2:17 UTC (permalink / raw)
To: Chris Mason, Josef Bacik, David Sterba, linux-btrfs, linux-kernel
Cc: Kevin Mulvey
This is a patch to inode.c that fixes some spacing errors found by checkpatch.pl
Signed-off-by: Kevin Mulvey <kmulvey@linux.com>
---
fs/btrfs/inode.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 8bf326a..6516839 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4545,7 +4545,7 @@ int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size)
break;
}
last_byte = min(extent_map_end(em), block_end);
- last_byte = ALIGN(last_byte , root->sectorsize);
+ last_byte = ALIGN(last_byte, root->sectorsize);
if (!test_bit(EXTENT_FLAG_PREALLOC, &em->flags)) {
struct extent_map *hole_em;
hole_size = last_byte - cur_offset;
@@ -8829,9 +8829,9 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry,
*/
trans = btrfs_start_transaction(root, 11);
if (IS_ERR(trans)) {
- ret = PTR_ERR(trans);
- goto out_notrans;
- }
+ ret = PTR_ERR(trans);
+ goto out_notrans;
+ }
if (dest != root)
btrfs_record_root_in_trans(trans, dest);
@@ -9324,7 +9324,7 @@ static int __btrfs_prealloc_file_range(struct inode *inode, int mode,
break;
}
btrfs_drop_extent_cache(inode, cur_offset,
- cur_offset + ins.offset -1, 0);
+ cur_offset + ins.offset - 1, 0);
em = alloc_extent_map();
if (!em) {
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix spacing in btrfs/inode.c
2015-02-12 2:17 [PATCH] fix spacing in btrfs/inode.c Kevin Mulvey
@ 2015-02-12 9:43 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2015-02-12 9:43 UTC (permalink / raw)
To: Kevin Mulvey
Cc: Chris Mason, Josef Bacik, linux-btrfs, linux-kernel, Kevin Mulvey
On Wed, Feb 11, 2015 at 09:17:22PM -0500, Kevin Mulvey wrote:
> This is a patch to inode.c that fixes some spacing errors found by checkpatch.pl
https://btrfs.wiki.kernel.org/index.php/Project_ideas#Cleanup_projects
"Please note that pure whitespace and style reformatting changes are not
really necessary at this phase of development. They get fixed along
regular changes. Possibly once upon in a while a patch that fixes many
if not all whitespace errors could work, but otherwise it's considered a
noise."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-12 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-12 2:17 [PATCH] fix spacing in btrfs/inode.c Kevin Mulvey
2015-02-12 9:43 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox