Skip to content

Commit e026c93

Browse files
asjkdave
authored andcommitted
btrfs: rename err to ret in btrfs_dirty_pages()
Unify naming of return value to the preferred way. Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 3026d1c commit e026c93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fs/btrfs/file.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ int btrfs_dirty_pages(struct btrfs_inode *inode, struct page **pages,
128128
struct extent_state **cached, bool noreserve)
129129
{
130130
struct btrfs_fs_info *fs_info = inode->root->fs_info;
131-
int err = 0;
131+
int ret = 0;
132132
int i;
133133
u64 num_bytes;
134134
u64 start_pos;
@@ -158,10 +158,10 @@ int btrfs_dirty_pages(struct btrfs_inode *inode, struct page **pages,
158158
EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG,
159159
cached);
160160

161-
err = btrfs_set_extent_delalloc(inode, start_pos, end_of_last_block,
161+
ret = btrfs_set_extent_delalloc(inode, start_pos, end_of_last_block,
162162
extra_bits, cached);
163-
if (err)
164-
return err;
163+
if (ret)
164+
return ret;
165165

166166
for (i = 0; i < num_pages; i++) {
167167
struct page *p = pages[i];

0 commit comments

Comments
 (0)