Skip to content

Commit e2488ab

Browse files
committed
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull quota and ext3 fixes from Jan Kara. * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: fs, jbd: use a more generic hash function quota: Properly return errors from dquot_writeback_dquots() ext3: Don't check quota format when there are no quota files
2 parents 8945337 + 3c9cafe commit e2488ab

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

fs/ext3/super.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,13 +1354,6 @@ static int parse_options (char *options, struct super_block *sb,
13541354
"not specified.");
13551355
return 0;
13561356
}
1357-
} else {
1358-
if (sbi->s_jquota_fmt) {
1359-
ext3_msg(sb, KERN_ERR, "error: journaled quota format "
1360-
"specified with no journaling "
1361-
"enabled.");
1362-
return 0;
1363-
}
13641357
}
13651358
#endif
13661359
return 1;

fs/jbd/revoke.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
#include <linux/bio.h>
9494
#endif
9595
#include <linux/log2.h>
96+
#include <linux/hash.h>
9697

9798
static struct kmem_cache *revoke_record_cache;
9899
static struct kmem_cache *revoke_table_cache;
@@ -129,15 +130,11 @@ static void flush_descriptor(journal_t *, struct journal_head *, int, int);
129130

130131
/* Utility functions to maintain the revoke table */
131132

132-
/* Borrowed from buffer.c: this is a tried and tested block hash function */
133133
static inline int hash(journal_t *journal, unsigned int block)
134134
{
135135
struct jbd_revoke_table_s *table = journal->j_revoke;
136-
int hash_shift = table->hash_shift;
137136

138-
return ((block << (hash_shift - 6)) ^
139-
(block >> 13) ^
140-
(block << (hash_shift - 12))) & (table->hash_size - 1);
137+
return hash_32(block, table->hash_shift);
141138
}
142139

143140
static int insert_revoke_hash(journal_t *journal, unsigned int blocknr,

fs/quota/dquot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ int dquot_writeback_dquots(struct super_block *sb, int type)
634634
dqstats_inc(DQST_LOOKUPS);
635635
err = sb->dq_op->write_dquot(dquot);
636636
if (!ret && err)
637-
err = ret;
637+
ret = err;
638638
dqput(dquot);
639639
spin_lock(&dq_list_lock);
640640
}

0 commit comments

Comments
 (0)