summaryrefslogtreecommitdiff
path: root/irq.h
blob: 005e22418b38976242987f578e06594485189d2b (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef IRQ_H
#define IRQ_H

extern int device_irq_number(const char *ifname);
extern void device_restore_irq_affinity_list(void);
extern int device_set_irq_affinity_list(int irq, unsigned long from,
					unsigned long to);
extern int device_set_irq_affinity(int irq, unsigned long cpu);

#endif /* IRQ_H */
o'> authorLiu Bo <bo.li.liu@oracle.com>2016-08-23 15:22:58 -0700 committerChris Mason <clm@fb.com>2016-08-25 03:58:31 -0700 commit1ba98d086fe3a14d6a31f2f66dbab70c45d00f63 (patch) treec521349d7730ec47b60fe78a63822123c0fcf87d parent053ab70f0604224c7893b43f9d9d5efa283580d6 (diff)
Btrfs: detect corruption when non-root leaf has zero item
Right now we treat leaf which has zero item as a valid one because we could have an empty tree, that is, a root that is also a leaf without any item, however, in the same case but when the leaf is not a root, we can end up with hitting the BUG_ON(1) in btrfs_extend_item() called by setup_inline_extent_backref(). This makes us check the situation as a corruption if leaf is not its own root. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat