-bdf6d7c1350497bc7b0be6027a51d9330645672d
+c4ca278a540bd2f99864f198a6ec9b4cb1f1fd44
#define darray_insert_item(_d, _pos, _item) \
({ \
+ size_t pos = (_pos); \
int _ret = darray_make_room((_d), 1); \
\
if (!_ret) \
- array_insert_item((_d)->data, (_d)->nr, (_pos), (_item));\
+ array_insert_item((_d)->data, (_d)->nr, pos, (_item)); \
_ret; \
})
return ret;
}
-int bch2_writepage(struct page *page, struct writeback_control *wbc)
-{
- struct bch_fs *c = page->mapping->host->i_sb->s_fs_info;
- struct bch_writepage_state w =
- bch_writepage_state_init(c, to_bch_ei(page->mapping->host));
- int ret;
-
- ret = __bch2_writepage(page, wbc, &w);
- if (w.io)
- bch2_writepage_do_io(&w);
-
- return ret;
-}
-
/* buffered writes: */
int bch2_write_begin(struct file *file, struct address_space *mapping,
struct bch_inode_info *,
loff_t, unsigned);
-int bch2_writepage(struct page *, struct writeback_control *);
int bch2_readpage(struct file *, struct page *);
int bch2_writepages(struct address_space *, struct writeback_control *);
};
static const struct address_space_operations bch_address_space_operations = {
- .writepage = bch2_writepage,
.readpage = bch2_readpage,
.writepages = bch2_writepages,
.readahead = bch2_readahead,
enum opt_flags flags;
u64 min, max;
- union {
- struct {
- };
- struct {
- const char * const *choices;
- };
- struct {
- int (*parse)(struct bch_fs *, const char *, u64 *);
- void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
- };
- };
+ const char * const *choices;
+ int (*parse)(struct bch_fs *, const char *, u64 *);
+ void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
const char *hint;
const char *help;