Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255162
b: refs/heads/master
c: adab0f6
h: refs/heads/master
v: v3
  • Loading branch information
Chandra Seetharaman authored and Alex Elder committed Jul 20, 2011
1 parent 48c9abb commit 4f126b3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0f9e8fb4cc6dd5d07c72eeecc2f332b6e85e221
refs/heads/master: adab0f67d1cdaf468bbc311bce4d61f17626a536
2 changes: 1 addition & 1 deletion trunk/fs/xfs/linux-2.6/xfs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ xfs_quiesce_attr(
WARN_ON(atomic_read(&mp->m_active_trans) != 0);

/* Push the superblock and write an unmount record */
error = xfs_log_sbcount(mp, 1);
error = xfs_log_sbcount(mp);
if (error)
xfs_warn(mp, "xfs_attr_quiesce: failed to log sb changes. "
"Frozen image may not be consistent.");
Expand Down
15 changes: 5 additions & 10 deletions trunk/fs/xfs/xfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ xfs_unmountfs(
xfs_warn(mp, "Unable to free reserved block pool. "
"Freespace may not be correct on next mount.");

error = xfs_log_sbcount(mp, 1);
error = xfs_log_sbcount(mp);
if (error)
xfs_warn(mp, "Unable to update superblock counters. "
"Freespace may not be correct on next mount.");
Expand Down Expand Up @@ -1557,18 +1557,14 @@ xfs_fs_writable(xfs_mount_t *mp)
/*
* xfs_log_sbcount
*
* Called either periodically to keep the on disk superblock values
* roughly up to date or from unmount to make sure the values are
* correct on a clean unmount.
* Sync the superblock counters to disk.
*
* Note this code can be called during the process of freezing, so
* we may need to use the transaction allocator which does not not
* we may need to use the transaction allocator which does not
* block when the transaction subsystem is in its frozen state.
*/
int
xfs_log_sbcount(
xfs_mount_t *mp,
uint sync)
xfs_log_sbcount(xfs_mount_t *mp)
{
xfs_trans_t *tp;
int error;
Expand All @@ -1594,8 +1590,7 @@ xfs_log_sbcount(
}

xfs_mod_sb(tp, XFS_SB_IFREE | XFS_SB_ICOUNT | XFS_SB_FDBLOCKS);
if (sync)
xfs_trans_set_sync(tp);
xfs_trans_set_sync(tp);
error = xfs_trans_commit(tp, 0);
return error;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/xfs_mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ typedef struct xfs_mod_sb {
int64_t msb_delta; /* Change to make to specified field */
} xfs_mod_sb_t;

extern int xfs_log_sbcount(xfs_mount_t *, uint);
extern int xfs_log_sbcount(xfs_mount_t *);
extern __uint64_t xfs_default_resblks(xfs_mount_t *mp);
extern int xfs_mountfs(xfs_mount_t *mp);

Expand Down

0 comments on commit 4f126b3

Please sign in to comment.