mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
[XFS] kill XFS_ICSB_SB_LOCKED
With the last two patches XFS_ICSB_SB_LOCKED is never checked and only superflously passed to xfs_icsb_count, so kill it. SGI-PV: 976035 SGI-Modid: xfs-linux-melb:xfs-kern:30920a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
parent
45af6c6de6
commit
ce46193bca
2 changed files with 1 additions and 2 deletions
|
@ -2221,7 +2221,7 @@ xfs_icsb_disable_counter(
|
||||||
if (!test_and_set_bit(field, &mp->m_icsb_counters)) {
|
if (!test_and_set_bit(field, &mp->m_icsb_counters)) {
|
||||||
/* drain back to superblock */
|
/* drain back to superblock */
|
||||||
|
|
||||||
xfs_icsb_count(mp, &cnt, XFS_ICSB_SB_LOCKED|XFS_ICSB_LAZY_COUNT);
|
xfs_icsb_count(mp, &cnt, XFS_ICSB_LAZY_COUNT);
|
||||||
switch(field) {
|
switch(field) {
|
||||||
case XFS_SBS_ICOUNT:
|
case XFS_SBS_ICOUNT:
|
||||||
mp->m_sb.sb_icount = cnt.icsb_icount;
|
mp->m_sb.sb_icount = cnt.icsb_icount;
|
||||||
|
|
|
@ -206,7 +206,6 @@ typedef struct xfs_icsb_cnts {
|
||||||
|
|
||||||
#define XFS_ICSB_FLAG_LOCK (1 << 0) /* counter lock bit */
|
#define XFS_ICSB_FLAG_LOCK (1 << 0) /* counter lock bit */
|
||||||
|
|
||||||
#define XFS_ICSB_SB_LOCKED (1 << 0) /* sb already locked */
|
|
||||||
#define XFS_ICSB_LAZY_COUNT (1 << 1) /* accuracy not needed */
|
#define XFS_ICSB_LAZY_COUNT (1 << 1) /* accuracy not needed */
|
||||||
|
|
||||||
extern int xfs_icsb_init_counters(struct xfs_mount *);
|
extern int xfs_icsb_init_counters(struct xfs_mount *);
|
||||||
|
|
Loading…
Reference in a new issue