Skip to content

Commit

Permalink
reiserfs: rename [cn]_* variables
Browse files Browse the repository at this point in the history
This patch renames n_, c_, etc variables to something more sane.  This
is the sixth in a series of patches to rip out some of the awful
variable naming in reiserfs.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Mahoney authored and Linus Torvalds committed Mar 30, 2009
1 parent d68caa9 commit ee93961
Show file tree
Hide file tree
Showing 4 changed files with 438 additions and 442 deletions.
6 changes: 3 additions & 3 deletions fs/reiserfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ static int reiserfs_sync_file(struct file *filp,
struct dentry *dentry, int datasync)
{
struct inode *inode = dentry->d_inode;
int n_err;
int err;
int barrier_done;

BUG_ON(!S_ISREG(inode->i_mode));
n_err = sync_mapping_buffers(inode->i_mapping);
err = sync_mapping_buffers(inode->i_mapping);
reiserfs_write_lock(inode->i_sb);
barrier_done = reiserfs_commit_for_inode(inode);
reiserfs_write_unlock(inode->i_sb);
if (barrier_done != 1 && reiserfs_barrier_flush(inode->i_sb))
blkdev_issue_flush(inode->i_sb->s_bdev, NULL);
if (barrier_done < 0)
return barrier_done;
return (n_err < 0) ? -EIO : 0;
return (err < 0) ? -EIO : 0;
}

/* taken fs/buffer.c:__block_commit_write */
Expand Down
Loading

0 comments on commit ee93961

Please sign in to comment.