We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efb943 commit 8c721cbCopy full SHA for 8c721cb
fs/quota/dquot.c
@@ -288,14 +288,12 @@ static inline void remove_dquot_hash(struct dquot *dquot)
288
static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb,
289
struct kqid qid)
290
{
291
- struct hlist_node *node;
292
struct dquot *dquot;
293
294
- hlist_for_each (node, dquot_hash+hashent) {
295
- dquot = hlist_entry(node, struct dquot, dq_hash);
+ hlist_for_each_entry(dquot, dquot_hash+hashent, dq_hash)
296
if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid))
297
return dquot;
298
- }
+
299
return NULL;
300
}
301
0 commit comments