diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dquot.c | 10 | ||||
-rw-r--r-- | fs/reiserfs/super.c | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/fs/dquot.c b/fs/dquot.c index 24eef582d2a0..fc26d1097d3c 100644 --- a/fs/dquot.c +++ b/fs/dquot.c @@ -289,7 +289,15 @@ static void wait_on_dquot(struct dquot *dquot) mutex_unlock(&dquot->dq_lock); } -#define mark_dquot_dirty(dquot) ((dquot)->dq_sb->dq_op->mark_dirty(dquot)) +static inline int dquot_dirty(struct dquot *dquot) +{ + return test_bit(DQ_MOD_B, &dquot->dq_flags); +} + +static inline int mark_dquot_dirty(struct dquot *dquot) +{ + return dquot->dq_sb->dq_op->mark_dirty(dquot); +} int dquot_mark_dquot_dirty(struct dquot *dquot) { diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 393cc22c1717..3e1972d31e44 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -304,7 +304,7 @@ static int finish_unfinished(struct super_block *s) /* Turn quotas off */ for (i = 0; i < MAXQUOTAS; i++) { if (sb_dqopt(s)->files[i]) - vfs_quota_off_mount(s, i); + vfs_quota_off(s, i); } if (ms_active_set) /* Restore the flag back */ |